Wednesday, February 11, 2004

Death to hungarian notation

Surely
hungarian notation ought to be banned from the face of the earth..aaaaarggghh. It is so ugly it beats Paula Jones's hair:)
It is a bad thing because it is hard to consistently maintain its use in a code base touched by several people. It is especially bad when code generating tools use it and the code incorporating the generated code does not :(( I recently came accross a piece of code which uses variable names like "dqToken, sqToken" to mean double/single quoted tokens, and then went on to some generated code which was using hungarian notation. My nonhungariannotationed brain's reaction to it was to find some context dependent meaning for the prefixes in some of the variables ulProd, oulProd. And aargh...i realised after going through some more of that generated code that it was hungarian notation.

No comments: