Re: Why has hungarian notation been abandoned?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Julie (julie_at_nospam.com)
Date: 08/16/04


Date: Sun, 15 Aug 2004 22:59:13 -0700

Phill wrote:
>
> Does anyone know the reasoning for Microsoft abandoning Hungarina
> Notation in C#?
>
> I have found it very usefull in C++. I like this style:
>
> constant: MY_CONSTANT
> methos: myMethod()
> class: MyClass
> variable: iMyInteger
>
> Anyway I'm not crazy about the new style but wonder if there is a good
> reason for them capitalizing all functions and classes and not using
> hungarian notation?

One of the main reasons is due to the capabilities of modern development
environments, and the ability for type information to be instantly available
(in theory for some IDEs!) for any type, definition, function/method, etc.

Hungarian notation is from the early (PC) days where type information wasn't
readily available, and such prepended type 'decorations' assisted the
programmer in 'knowing' type information simply by looking at the name.

Another reason is that w/ each successive language (or library), the number of
types has (probably) exponentially increased. Hungarian notation just couldn't
keep up w/ the massive number of types being introduced.

In short, Hungarian was very useful for its time, but its time has past, and
its utility value has been steadily diminishing for the past few years...

By the way, what you have as an example above is not Hungarian notation, with
the exception of 'variable: iMyInteger'.



Relevant Pages

  • Re: tclsh - feature request
    ... It's a pity. ... that was a reason for s.c. ... "hungarian notation". ...
    (comp.lang.tcl)
  • Re: Idiosyncratic (or idiotic?) notation for lim inf, etc.
    ... and they're easy to find in lots of books. ... seem to be a single set of "standard proofs". ... >>an even worse idea to use in public the notation that I have ... For any particular reason? ...
    (sci.math)
  • Re: 1-0.999.... = ?
    ... Lodder): ... rather than attempting to give a reason by ... mathematical lexicon, yet you invoke it for a difficult case that has been ... There are many cases in math where part of a notation is optional, ...
    (talk.origins)
  • Re: Lots of Idiotic Silly Braces?
    ... David C and his notation thread has sent me off on what could be another wild goose chase. ... suppose S stands for Suppliers and stands for a set of suppliers. ... But I can see no reason why there couldn't be an relation that looked like: ...
    (comp.databases.theory)
  • Re: I REPEAT WHAT WAS COMPLETELY STATED YET:
    ... The reason of a notation (The unnecessary ... explanation). ... different meaning, as everybody knows. ...
    (sci.stat.math)