<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 7+1 tips for naming variables</title>
	<atom:link href="http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 10:36:55 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kot789</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-7185</link>
		<dc:creator>Kot789</dc:creator>
		<pubDate>Wed, 05 May 2010 19:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-7185</guid>
		<description>5. Don´t use negative logic for your variable names.
6. Be consistent.

do you already see an inconsistency?:D

a little tip:
5. Use positive logic for your variable names instead of negative logic.</description>
		<content:encoded><![CDATA[<p>5. Don´t use negative logic for your variable names.<br />
6. Be consistent.</p>
<p>do you already see an inconsistency?:D</p>
<p>a little tip:<br />
5. Use positive logic for your variable names instead of negative logic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fernando</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-6050</link>
		<dc:creator>Fernando</dc:creator>
		<pubDate>Wed, 31 Mar 2010 12:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-6050</guid>
		<description>henry erich iii,

In that case, I&#039;d prefer to declare only the int variable, for the QueryString won&#039;t be modified among these lines, or to use more descriptive names:

int customerId;
int.TryParse(Request.QueryString[&quot;cid&quot;], out customerId);</description>
		<content:encoded><![CDATA[<p>henry erich iii,</p>
<p>In that case, I&#8217;d prefer to declare only the int variable, for the QueryString won&#8217;t be modified among these lines, or to use more descriptive names:</p>
<p>int customerId;<br />
int.TryParse(Request.QueryString["cid"], out customerId);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The &#8216;programming for scientists&#8217; link montage &#124; Programming for Scientists</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-1506</link>
		<dc:creator>The &#8216;programming for scientists&#8217; link montage &#124; Programming for Scientists</dc:creator>
		<pubDate>Tue, 13 Oct 2009 22:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-1506</guid>
		<description>[...] 7+1 tips for naming variables Tips for creating good variable names [...]</description>
		<content:encoded><![CDATA[<p>[...] 7+1 tips for naming variables Tips for creating good variable names [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 commandments for creating good code &#124; Making Good Software</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-805</link>
		<dc:creator>10 commandments for creating good code &#124; Making Good Software</dc:creator>
		<pubDate>Sun, 16 Aug 2009 12:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-805</guid>
		<description>[...] There is nothing nicer than using some other developer code and not having to read its documentation because the names of the classes and the methods are telling us everything, so, make everyone&#8217;s life easier and take this approach, expend always a few seconds before naming any element in your code. [...]</description>
		<content:encoded><![CDATA[<p>[...] There is nothing nicer than using some other developer code and not having to read its documentation because the names of the classes and the methods are telling us everything, so, make everyone&#8217;s life easier and take this approach, expend always a few seconds before naming any element in your code. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrice Aimetti</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-771</link>
		<dc:creator>Fabrice Aimetti</dc:creator>
		<pubDate>Tue, 11 Aug 2009 10:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-771</guid>
		<description>Hello Alberto, I&#039;ve translated your excellent post : &lt;a href=&quot;http://www.fabrice-aimetti.fr/dotclear/index.php?post/2009/08/10/7-1-conseils-pour-nommer-les-variables&quot; rel=&quot;nofollow&quot;&gt;7 + 1 conseils pour nommer les variables&lt;/a&gt;, Regards, Fabrice.</description>
		<content:encoded><![CDATA[<p>Hello Alberto, I&#8217;ve translated your excellent post : <a href="http://www.fabrice-aimetti.fr/dotclear/index.php?post/2009/08/10/7-1-conseils-pour-nommer-les-variables" rel="nofollow">7 + 1 conseils pour nommer les variables</a>, Regards, Fabrice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 5 Tips to improve your code readability &#124; Internet Resources</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-226</link>
		<dc:creator>5 Tips to improve your code readability &#124; Internet Resources</dc:creator>
		<pubDate>Mon, 13 Jul 2009 05:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-226</guid>
		<description>[...] this article: tips to write variable names, there are a few tips that can actually be applied to name any named element not only [...]</description>
		<content:encoded><![CDATA[<p>[...] this article: tips to write variable names, there are a few tips that can actually be applied to name any named element not only [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 commandments for creating good code &#171; Making Good Software</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-35</link>
		<dc:creator>10 commandments for creating good code &#171; Making Good Software</dc:creator>
		<pubDate>Thu, 04 Jun 2009 23:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-35</guid>
		<description>[...] There is nothing nicer than using some other developer code and not having to read its documentation because the names of the classes and the methods are telling us everything, so, make everyone&#8217;s life easier and take this approach, expend always a few seconds before naming any element in your code. [...]</description>
		<content:encoded><![CDATA[<p>[...] There is nothing nicer than using some other developer code and not having to read its documentation because the names of the classes and the methods are telling us everything, so, make everyone&#8217;s life easier and take this approach, expend always a few seconds before naming any element in your code. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Sykes</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-36</link>
		<dc:creator>Ed Sykes</dc:creator>
		<pubDate>Thu, 04 Jun 2009 16:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-36</guid>
		<description>I think your description and example for hungarian notation is wrong.

The key thing about hungarian notation isn&#039;t types it&#039;s context.

So in joel&#039;s example he talks about strings that come from the user and have yet to be santised should begin with &#039;us&#039;. Strings that have been sanitised for cross site scripting attacks have the prefix &#039;s&#039;.

So 2 strings usUsername and sUsername are the same type and most likely will have exactly the same data. However they have now some notion of context. A safe context and unsafe context.

Another example is desktop environment that has a window Foo within in. Within Foo is another window called Bar. Bar has 4 variables that represent the XY position within Foo and within the main desktop. They are t_x, t_x, p_x, p_y. The convention would be that the t means the xy position applies to the topmost window. It also states that p means that x and y apply to the xy position in the immediate parent.

 In reality, hungarian notation is required far less in an object orientated system than it appears, misused, in most code bases.</description>
		<content:encoded><![CDATA[<p>I think your description and example for hungarian notation is wrong.</p>
<p>The key thing about hungarian notation isn&#8217;t types it&#8217;s context.</p>
<p>So in joel&#8217;s example he talks about strings that come from the user and have yet to be santised should begin with &#8216;us&#8217;. Strings that have been sanitised for cross site scripting attacks have the prefix &#8217;s&#8217;.</p>
<p>So 2 strings usUsername and sUsername are the same type and most likely will have exactly the same data. However they have now some notion of context. A safe context and unsafe context.</p>
<p>Another example is desktop environment that has a window Foo within in. Within Foo is another window called Bar. Bar has 4 variables that represent the XY position within Foo and within the main desktop. They are t_x, t_x, p_x, p_y. The convention would be that the t means the xy position applies to the topmost window. It also states that p means that x and y apply to the xy position in the immediate parent.</p>
<p> In reality, hungarian notation is required far less in an object orientated system than it appears, misused, in most code bases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naming variables - The Log File</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-34</link>
		<dc:creator>Naming variables - The Log File</dc:creator>
		<pubDate>Thu, 14 May 2009 15:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-34</guid>
		<description>[...] Pourya on May.05, 2009, under Software Development  I have just read an interesting article called &#8220;7+1 tips for naming variables&#8221;. It basically describes how to choose meaningful variable names that makes scene to you and others [...]</description>
		<content:encoded><![CDATA[<p>[...] Pourya on May.05, 2009, under Software Development  I have just read an interesting article called &#8220;7+1 tips for naming variables&#8221;. It basically describes how to choose meaningful variable names that makes scene to you and others [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto G</title>
		<link>http://www.makinggoodsoftware.com/2009/05/04/71-tips-for-naming-variables/comment-page-1/#comment-33</link>
		<dc:creator>Alberto G</dc:creator>
		<pubDate>Wed, 13 May 2009 16:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://makinggoodsoftware.com/?p=215#comment-33</guid>
		<description>Nice addition Matt! Thanks for the comment</description>
		<content:encoded><![CDATA[<p>Nice addition Matt! Thanks for the comment</p>
]]></content:encoded>
	</item>
</channel>
</rss>
