<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: The Case of Better Readable Code</title>
	<atom:link href="http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<pubDate>Sat, 11 Oct 2008 23:31:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50468</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 02 Apr 2007 00:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50468</guid>
		<description>&lt;p&gt;The point I'm getting here is that you can never expect everyone to like the same coding format that you like and vice versa. This makes the need to &lt;em&gt;enforce&lt;/em&gt; code styling and formatting standards (among team members) even stronger.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The point I&#8217;m getting here is that you can never expect everyone to like the same coding format that you like and vice versa. This makes the need to <em>enforce</em> code styling and formatting standards (among team members) even stronger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jared</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50443</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Mon, 26 Mar 2007 23:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50443</guid>
		<description>&lt;p&gt;I'm with David on this.&lt;/p&gt;

&lt;p&gt;With SQL, if it is not in quotes, I write it lower case.  The exceptions are when I pass the code through a formatter.&lt;/p&gt;

&lt;p&gt;If I happen to be writing PL/SQL that is to be of any consequence, I may name my variable with init cap on each word, with the initial character in lower case.
eg.  thisIsMyVariableName&lt;/p&gt;

&lt;p&gt;If it is some really serious PL/SQL (more than a 100 lines or so  ) the variables will probably be prefixed with character to indicate the data type.&lt;/p&gt;

&lt;p&gt;eg. dThisIsADateVariable&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m with David on this.</p>
<p>With SQL, if it is not in quotes, I write it lower case.  The exceptions are when I pass the code through a formatter.</p>
<p>If I happen to be writing PL/SQL that is to be of any consequence, I may name my variable with init cap on each word, with the initial character in lower case.<br />
eg.  thisIsMyVariableName</p>
<p>If it is some really serious PL/SQL (more than a 100 lines or so  ) the variables will probably be prefixed with character to indicate the data type.</p>
<p>eg. dThisIsADateVariable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Robertson</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50412</link>
		<dc:creator>William Robertson</dc:creator>
		<pubDate>Fri, 16 Mar 2007 00:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50412</guid>
		<description>&lt;p&gt;I'm with Eddie: "Select * From" is to my particular brain cluttered, twee and unreadable. I would sooner see all-lowercase, or else (as I do) routinely go through PL/SQL Developer's .kwf files adding words like COLLECT and NTILE so they show up properly.&lt;/p&gt;

&lt;p&gt;Although I do use code formatters, my problem with them is that the default settings do criminally insane things like right-aligning SQL keywords, and they can't seem to do fairly obvious things like starting a new line for a subquery.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m with Eddie: &#8220;Select * From&#8221; is to my particular brain cluttered, twee and unreadable. I would sooner see all-lowercase, or else (as I do) routinely go through PL/SQL Developer&#8217;s .kwf files adding words like COLLECT and NTILE so they show up properly.</p>
<p>Although I do use code formatters, my problem with them is that the default settings do criminally insane things like right-aligning SQL keywords, and they can&#8217;t seem to do fairly obvious things like starting a new line for a subquery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50405</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Wed, 14 Mar 2007 18:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50405</guid>
		<description>&lt;p&gt;Personally, and this is very much IMHO, I don't get the reserved word thing. The list changes with each release and with each product (SQL, SQL*Plus, PL/SQL) and if one is supposed to recognise them well enough to capitalise them then the capitalisation ought to be regarded as redundant.&lt;/p&gt;

&lt;p&gt;IMHO&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Personally, and this is very much IMHO, I don&#8217;t get the reserved word thing. The list changes with each release and with each product (SQL, SQL*Plus, PL/SQL) and if one is supposed to recognise them well enough to capitalise them then the capitalisation ought to be regarded as redundant.</p>
<p>IMHO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50404</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Wed, 14 Mar 2007 17:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50404</guid>
		<description>&lt;blockquote&gt;
  &lt;p&gt;because the human brain is better as interpreting when you give more visual clues to the words&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Exactly. Another example:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;select employee_id from employees&lt;/li&gt;
&lt;li&gt;Select Employee_Id From Employees&lt;/li&gt;
&lt;li&gt;SELECT employee_id FROM employees&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I believe that number 3 is the easiest to read. There is a visual clue that SELECT and FROM are  reserved words.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;both tools are from Quest&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Right. I'm not surprised either that they use the same formatter.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<blockquote>
<p>because the human brain is better as interpreting when you give more visual clues to the words</p>
</blockquote>
<p>Exactly. Another example:</p>
<ol>
<li>select employee_id from employees</li>
<li>Select Employee_Id From Employees</li>
<li>SELECT employee_id FROM employees</li>
</ol>
<p>I believe that number 3 is the easiest to read. There is a visual clue that SELECT and FROM are  reserved words.</p>
<blockquote>
<p>both tools are from Quest</p>
</blockquote>
<p>Right. I&#8217;m not surprised either that they use the same formatter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Flack</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50403</link>
		<dc:creator>John Flack</dc:creator>
		<pubDate>Wed, 14 Mar 2007 16:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50403</guid>
		<description>&lt;p&gt;That's a good argument for automated code formatting, Dave.  I can reformat your code to look the way that I find most readable.  Eddie - I use the code formatter that comes with TOAD - looks like it is the same one you use with SQL Navigator - interesting, but not surprising - both tools are from Quest.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good argument for automated code formatting, Dave.  I can reformat your code to look the way that I find most readable.  Eddie - I use the code formatter that comes with TOAD - looks like it is the same one you use with SQL Navigator - interesting, but not surprising - both tools are from Quest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Aldridge</title>
		<link>http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50400</link>
		<dc:creator>David Aldridge</dc:creator>
		<pubDate>Wed, 14 Mar 2007 15:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2007/03/11/the-case-of-better-readable-code/#comment-50400</guid>
		<description>&lt;p&gt;I'm a fan of init caps - there's a reason why directions signs on freeways/motorways don't use all lower case or (worse still) upper case letters, and it's because the human brain is better as interpreting when you give more visual clues to the words.&lt;/p&gt;

&lt;p&gt;eg. from easiest to read to hardest ...&lt;/p&gt;

&lt;p&gt;Exec DBMS_Stats.Gather_System_Stats&lt;/p&gt;

&lt;p&gt;exec dbms_stats.gather_system_stats&lt;/p&gt;

&lt;p&gt;EXEC DBMS_STATS.GATHER_SYSTEM_STATS&lt;/p&gt;

&lt;p&gt;Mind you, it drives other people crazy, but that's just another advantage for me :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m a fan of init caps - there&#8217;s a reason why directions signs on freeways/motorways don&#8217;t use all lower case or (worse still) upper case letters, and it&#8217;s because the human brain is better as interpreting when you give more visual clues to the words.</p>
<p>eg. from easiest to read to hardest &#8230;</p>
<p>Exec DBMS_Stats.Gather_System_Stats</p>
<p>exec dbms_stats.gather_system_stats</p>
<p>EXEC DBMS_STATS.GATHER_SYSTEM_STATS</p>
<p>Mind you, it drives other people crazy, but that&#8217;s just another advantage for me <img src='http://awads.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
