_Domain_ Types, you fool

Joel Spolosky has a really interesting article debunking the commonly-understood variable naming convention known as Hungarian Notation.

It turns out that somewhere along the journey from Charles Simonyi through Microsoft and out into the wider world the intended meaning of the word type was misconstrued as meaning representation type (eg int, float, string, char*, unsigned long etc) rather than domain type (eg point size, pixel width, age in years, AU currency, etc).
This is probably mildly amusing to anyone who was paying attention when they were taught conceptual modelling / database design.

There’s a lot more to his article Making Wrong Code Look Wrong than just this interesting accident of History – it’s a highly recommended read.

Post a Comment

You must be logged in to post a comment.