Posted on August 18th, 2008 at 16:10 by fr3@K
From Sutter’s Mill:
… The main trouble with Systems Hungarian comes from trying to embed information about a variable’s type into the variable’s name by prepending an encoded wart like the venerable sz, pach, ul, and their ilk. Although potentially helpful in a weakly-typed language like C, that’s known to be brittle and the prefixes tend to turn into lies as variable types morph during maintenance. The warting systems also don’t extend well to user-defined types and templates.
I am glad to learn that the Guru and I share similar views on this matter.
Further readings:
- Hugarian notation - it’s my turn now
from Larry Osterman’s WebLog. - Die, Hungarian notation… Just *die* from Neopoleon.
- Making Wrong Code Look Wrong from Joel on Software.