This article clarifies a few things that I’ve subconsciously noticed myself — for instance, when you have a function in your program that does more than it should, it becomes hard to succinctly and concisely name it. It also introduces the “three numbers in software” (zero, one, and infinity), and the phrase “inheriting from the clipboard,” which I’ve adopted… there are a few places in my code where I’ve done that myself, and which really should be refactored. Recommended reading for all software developers.
It becomes even harder to concisely name something if you use Hungarian notation. 😉
I’m sure you’ve already read the excellent (but very long-winded) JoelOnSoftware defense of Hungarian Notation, which explains why the original idea is good, but some dipshit at Microsoft screwed it up.
Hungarian notation is a solution in search of a problem. There is a C++ compiler. It does type checking. Use it.
You haven’t read that article, or at least you haven’t read it recently. If you had, you’d have seen this:
It’s about three-quarters of the way down the page.
I see. What usually you see though is something like:
char *CharPtrFoo;
Which is totally useless.
Again from the article:
Hmm, I like this “Joel on Software” guy for some reason. He seems to agree with me a lot about Hungrarian notation.
🙂