Stop Using Hungarian Notation!

Posted Monday, May 7, 2007 2:36 PM by C-Dog's .NET Tip of the Day

I am really surprised that it took me so long to make a post on this, but here it is. For the love of god, STOP USING HUNGARIAN NOTATION. You developers out there that still use it know who you are. For some reason you haven't noticed that your naming convention doesn't follow anything else that Microsoft is doing in their class libraries. Hungarian Notation has been considered bad form since the start of the .NET Framework and now is the time to learn the correct way to name variables.

To further prove my point, this article on MSDN states some common best practices. Guess what? "Do not use Hungarian notation" is listed right in the first paragraph. Other things that are recommended are using easily readable identifier names and to avoid using abbreviations or acronyms.

Lastly one thing to note is that they also recommend against using underscores and hyphens in variable names. I completely agree with this but I still often see private variables named in this manner in Microsoft code.

.NET Framework General Naming Conventions

Read the complete post at http://www.dotnettipoftheday.com/blog.aspx?id=354