Re: How to name variables in a program?



Arafangion wrote:
> I came across a rumour (I _think_ I got it from www.joelonsoftware.com),
> but the rumour suggests that Hungarian notation originated from a
> missunderstanding of Apps hungarian, particularly on the word 'type'.
> For instance, Apps Hungarian would never simply say iWidth, but would
> use something more like scrWidth, and scrHeight, with a convention that
> scr means "the screen", which helps you not mix it with, say, panelWidth
> and panelHeight.
>
> I'm going out on a limb here, could someone confirm or deny this?

I thought "hungarian" was just a reference to its inventor Charles
Simonyi (worked on Excel, and other high level projects at MS) who is a
hungarian.

--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/

.



Relevant Pages

  • Re: Why NOT hungarian notation?
    ... I wish I had known about Apps Hungarian because ... When I see code that does not use Hungarian notation I feel like half my brain ... What are the real cons for using it? ... I tend to use it a lot, especially when IDing my controls. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Another newbie question
    ... you seem to be referring only to Systems Hungarian. ... I think what Ralph is trying to indicate is that Apps Hungarian can be quite useful. ... Dim lngCounterMainLoop as Long ...
    (microsoft.public.vb.general.discussion)
  • Re: Parameter String als Ref bzw als Out type?
    ... Zu allererst muss zwischen Apps Hungarian und Systems Hungarian ... Während letzteres unter .NET mit aktivierter ... Typstrenge etwas an Sinn verliert, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: public global constants
    ... Apps Hungarian and Systems Hungarian, ... "They" would be Jack... ...
    (microsoft.public.vb.general.discussion)
  • Re: How to name variables in a program?
    ... but the rumour suggests that Hungarian notation originated from a missunderstanding of Apps hungarian, ... Then if you name all your functions prefixFromWhatever, it becomes clear if you've made an error, e.g. ...
    (comp.programming)