Hungarian notation

Fri 2007-12-07 03:09 (link)

The two best-ever articles on the subject.

Making Wrong Code Look Wrong by Joel Spolsky

“Every line of code can be inspected by itself, and if every line of code is correct, the entire body of code is correct.”
“They’re both of type string. The compiler won’t help you if you assign one to the other and Intellisense won’t tell you bupkis.”

Rediscovering Hungarian Notation by Greg Fodor

“First and foremost, having these nice friendly names leads to one of the biggest poisons in programming: unfounded assumptions.”
“Hungarian turns the opinion of a ‘bad variable name’ into an objective ‘incorrect variable name’!”