Re: Hungarian Notation
- From: Jim Cooper <jcooper@xxxxxxxxxxxxx>
- Date: Fri, 08 Apr 2005 10:21:12 +0100
Not really, postfixing requires you to read the whole name
to understand it, and thus the information it provides isn't
as visually accessible
What? You have to read the whole name in whatever naming convention you use. Unless the name is sentence type length, it isn't a problem.
the prefixes are aligned which makes them stand out, and you can instantly know what the code does without even reading it, while with postfixing, nothing meaningful is aligned.
But no extra data at all is added in your method. I find I **can't** read just part of a word (I think I normally read several words at once, as it happens). Using suffixes adds exactly the same information, with the added bonus that they are longer and easier to understand as I don't have to learn the prefix table.
That's more an habit issue,
I agree with you that it is a habit - a bad one :-)
I personnally find postfixed typing a whole lot more trouble to read, as it requires actual reading of the whole code, while aligned & prefixed code can be understood with a partial reading.
And I find the opposite, and so do most (English-speaking?) people.
The trouble with prefixes is that it is not a natural place to add that sort of information in English. You have to **learn** to read things that way, you don't have to learn to read suffixes.
Also there is the perennial problem that in any significant OO system there are far, far too many classes/types/interfaces for it to be sensible to have prefixes for all of them. If it is OK to have variables of most classes without prefixes, then it should be OK for none of them to have prefixes.
Cheers, Jim Cooper
__________________________________________
Jim Cooper jcooper@xxxxxxxxxxxxx Tabdee Ltd http://www.tabdee.ltd.uk
TurboSync - Connecting Delphi to your Palm __________________________________________ .
- Follow-Ups:
- Re: Hungarian Notation
- From: Wayne Niddery [TeamB]
- Re: Hungarian Notation
- From: Eric Grange
- Re: Hungarian Notation
- References:
- Hungarian Notation
- From: roman modic
- Re: Hungarian Notation
- From: Peter Sirca
- Re: Hungarian Notation
- From: Jim Cooper
- Re: Hungarian Notation
- From: Eric Grange
- Hungarian Notation
- Prev by Date: Re: Please give feedback about Update2 Germain and French version !
- Next by Date: Re: Hungarian Notation
- Previous by thread: Re: Hungarian Notation
- Next by thread: Re: Hungarian Notation
- Index(es):
Relevant Pages
|