Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of the major functions of Hungarian notion was to communicate information which was not contained in the types of the actual variables, for example an int could be a count of bytes 'cb', or perhaps a handle 'h', etc. But it ended up being mostly misused to communicate redundant type information, such as a char* being 'sz' (zero-terminated string), which tells us nothing we didn't already know. As you say, better IDEs made the latter kind of naming no longer advantageous (if it ever was) but that was true for some time before Hungarian notation fell out of favour - the real reason being a rejection of its redundancy within MS during the transition to .NET. Joel Spolsky details the good and bad of Hungarian notation here:

http://www.joelonsoftware.com/articles/Wrong.html



'sz' is pretty useful if you have pascal strings floating around.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: