Re: Hungarian Notation



Jim Cooper wrote:
>> I made a concious decision, because of what
>> I perceived as a value to me, to *start* to specifically distinguish
>> *components* from other identifiers via the use of prefixes.
>
> You still haven't said why you do that, though.

The answer is in the statement above - it makes a very clear visual
disinction in the code. I find value in that.

>> I never considered using prefixes for anything else, thus it was
>> never a matter of deciding better of it or stopping short.
>
> YOu're splitting a semantic hair there :-) You've already said you
> think it's bad to use HN for everything.

I *never* said that. What I said is that HN, like so many other things, can
be abused. Abuse, for me, would be coming up with 300 or 400 different
prefixes for that many different control types, and as a result, it *would*
become unreadable - not simply because HN was used but because it is
unreasonable for anyone to memorize *either* that many prefixes *or* that
many specific control types to associate them with.


I don't use prefixes for other kinds of identifiers because I find it
redundant, not unreadable. E.g. I get no benefit from seeing "iCount"
instead of "Count" or "sName" instead "Name", it is normally clear enough
from the naming and context so neither prefix *or* postfix qualifiers are
needed (i.e. you would not name this "CountInteger" or "NameString" either).

--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
Light is faster than sound, which is why some folks appear bright
before they speak.


.



Relevant Pages

  • Re: Hungarian Notation
    ... Jim Cooper wrote: ... uncommon situation. ... 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. ...
    (borland.public.delphi.non-technical)
  • Re: Hungarian Notation
    ... Jim Cooper wrote: ... you had only 5 prefixes to learn? ... > You would have to find typing a real chore if saving a handful of ... I was just countering your own silly point that "it relies on memory ...
    (borland.public.delphi.non-technical)
  • Re: Hungarian Notation
    ... Jim Cooper wrote: ... > abbreviations, at some point it gets unsupportable, which is why even ... *components* from other identifiers via the use of prefixes. ... "The two most abundant elements in the universe are hydrogen and ...
    (borland.public.delphi.non-technical)
  • Re: Hungarian Notation
    ... Jim Cooper wrote: ... Eye of the beholder. ... I find short prefixes on component names make my ...
    (borland.public.delphi.non-technical)
  • Re: Hungarian Notation
    ... 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. ... 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. ... Jim Cooper jcooper@xxxxxxxxxxxxx ...
    (borland.public.delphi.non-technical)