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.
![]() |
|
| Previous Post « Exception Handling 新思維 « |
Next Post » Exception Handling 新思維, Using Guards » |








同意您的看法。討論Hungarian Notation的資料還蠻多的:
Joel Spolsky 也有類似的看法。(http://www.joelonsoftware.com/articles/Wrong.html)
MS員工Larry Osterman也有一篇文章在談System Hungarian and Apps Hungarian之間的差異。(http://blogs.msdn.com/larryosterman/archive/2004/06/22/162629.aspx)
Comment by sam — August 18, 2008 @ 17:14