Re: Hungarian Notation



Jim Cooper wrote:
I still think you are writing obfuscated code for very little gain in an uncommon situation.

I've been trying not to *** into this thread but I couldn't ignore that "obfuscated code" swipe :-)

I have seen plenty of examples where people have gone /way/ over the
top with their application of HN to such a degree that, as you asserted
earlier, you would need a lookup table to find all the prefixes.
However, I tend to employ the solution that Wayne mentioned earlier
in the thread e.g. All TEdit controls and descendants are prefixed with
"ed", etc. IMO, this approach mitigates against the excesses of HN at
its worst whilst retaining the advantages detailed by Eric, Wayne et al.

Are component names like edCustomerName really so obfuscated ? :-)

Anyway, I am old enough and ugly enough to take all of these "death of
Hungarian Notation" articles with a pinch of salt. Our thought leaders
will be telling us all that it's back in fashion again in five minutes
before changing their mind back again. Do whatever suits for you and
your team, b*ll*cks to everyone else :-P


.


Quantcast