<?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: Hungarian notation, what do I think?</title>
	<atom:link href="http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/feed/" rel="self" type="application/rss+xml" />
	<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/</link>
	<description>The adventures of a young kiwi software developer in London</description>
	<lastBuildDate>Tue, 07 Sep 2010 06:56:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Alexander Malfait</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-7215</link>
		<dc:creator>Alexander Malfait</dc:creator>
		<pubDate>Mon, 06 Jul 2009 08:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-7215</guid>
		<description>Even for GUI controls, I&#039;d probably not include the control type in the variable name. Say you&#039;re accessing the &quot;address&quot; control, it doesn&#039;t matter if that control is a simple textfield or a compound component with a seperate field for street, city,...

You should try to orangize your code in a way that you can do &quot;addressField.setValue(person.getAddress())&quot; without worrying how the field will actually process/display that data. This way you can reuse your components without actually having to think about they work internally on every usage.</description>
		<content:encoded><![CDATA[<p>Even for GUI controls, I&#8217;d probably not include the control type in the variable name. Say you&#8217;re accessing the &#8220;address&#8221; control, it doesn&#8217;t matter if that control is a simple textfield or a compound component with a seperate field for street, city,&#8230;</p>
<p>You should try to orangize your code in a way that you can do &#8220;addressField.setValue(person.getAddress())&#8221; without worrying how the field will actually process/display that data. This way you can reuse your components without actually having to think about they work internally on every usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-6803</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sun, 28 Jun 2009 10:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-6803</guid>
		<description>@Kevin: agreed. I too have used hungarian notation for UI controls in the code behind ASP.NET pages, where in a single context you often have variables of different types that all share the same name -- eg. txtFirstName for the textbox UI control + firstName for a string with its value.

In these situations however, I think it&#039;s only done because you can&#039;t have multiple variables with the same name, and you need to know which one is the control and which is the value inside. The actual type of control is of little importance: uiUsername would be just as useful as txtUsername I think.</description>
		<content:encoded><![CDATA[<p>@Kevin: agreed. I too have used hungarian notation for UI controls in the code behind ASP.NET pages, where in a single context you often have variables of different types that all share the same name &#8212; eg. txtFirstName for the textbox UI control + firstName for a string with its value.</p>
<p>In these situations however, I think it&#8217;s only done because you can&#8217;t have multiple variables with the same name, and you need to know which one is the control and which is the value inside. The actual type of control is of little importance: uiUsername would be just as useful as txtUsername I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruben</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-6743</link>
		<dc:creator>ruben</dc:creator>
		<pubDate>Sat, 27 Jun 2009 11:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-6743</guid>
		<description>And let&#039;s not forget what happens when the type of a variable name specified with Hungarian notation changes.</description>
		<content:encoded><![CDATA[<p>And let&#8217;s not forget what happens when the type of a variable name specified with Hungarian notation changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeyLin</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-6736</link>
		<dc:creator>MikeyLin</dc:creator>
		<pubDate>Sat, 27 Jun 2009 09:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-6736</guid>
		<description>I&#039;d agree with Kevin and Johniy. Prefixes are very useful when referring to GUI elements. It allows do a find within a document of any references to GUI elements very quickly and effectively seperates those variables from those used internally to your methods etc.</description>
		<content:encoded><![CDATA[<p>I&#8217;d agree with Kevin and Johniy. Prefixes are very useful when referring to GUI elements. It allows do a find within a document of any references to GUI elements very quickly and effectively seperates those variables from those used internally to your methods etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johniy</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-6720</link>
		<dc:creator>Johniy</dc:creator>
		<pubDate>Sat, 27 Jun 2009 02:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-6720</guid>
		<description>@Kevin is right. You can have 

labelName
editName

where the prefixes become important.</description>
		<content:encoded><![CDATA[<p>@Kevin is right. You can have </p>
<p>labelName<br />
editName</p>
<p>where the prefixes become important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://richarddingwall.name/2009/06/24/hungarian-notation-what-do-i-think/comment-page-1/#comment-6713</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 26 Jun 2009 22:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://richarddingwall.name/?p=1518#comment-6713</guid>
		<description>The area I find Hungarian handy is when the variable refers to a GUI control: combobox, button, text area, etc. A bit harder to make the variable name indicate what it is in those cases.</description>
		<content:encoded><![CDATA[<p>The area I find Hungarian handy is when the variable refers to a GUI control: combobox, button, text area, etc. A bit harder to make the variable name indicate what it is in those cases.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
