|
||||
Wednesday, May 04, 2005Hungarian Notation and Smelly Code
While doing some research for a coding standards document, I found a big wiki discussion on the pros & cons of Hungarian Notation. I started out programming with Pascal, then C (LPC actually), then C++, then VBA, then javascript, then VB, then C# & VB.NET. Maybe there were some other languages in there, too.
Tuesday, May 03, 2005So, I instinctively use Hungarian Notation, yet I'm reading that it's a bad idea. That it only handles basic types, not objects (most of my variables are objects anyhow), that it obfuscates code, that it's "yucky", etc. Seems like Microsoft has gotten away from it in their coding guidelines, too. Seems like the traditionalists are largely in the pro-HN camp, which makes me think that in 10 years you won't see very much HN at all. Although who knows what code will be like then. Lastly, I got a kick out of the CodeSmell article. It refers to an experienced coder's ability to look at code & somehow sense that something "could" be wrong with it, without exactly knowing what. Hence the "smell" aspect ... it smells like it could be bad, but you're not as certain as if you could see it, touch it, etc. C# Coding Standards
From Mark Brown:
Here is the IDesign C# Coding Standard for development guidelines and best practices. Also, IDesign has some great tools and utilities. ASP.NET Resources - Beware Of Deploying Debug Code In Production
ASP.NET Resources - Beware Of Deploying Debug Code In Production discusses a hidden gotcha that can cause performance problems, security issues, or make your web servers run out of disk space. And it's set to do that by default. :)
BTW dasBlog is sweet. Stay tuned. Archives September 2004 October 2004 November 2004 December 2004 January 2005 February 2005 March 2005 April 2005 May 2005 |
||||
| ||||