Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2001 13:48:10 -0500
From:      Technical Information <tech_info@threespace.com>
To:        FreeBSD Chat <chat@freebsd.org>
Subject:   Re: hungarian notation
Message-ID:  <4.3.2.7.2.20010122134036.01790960@mail.threespace.com>
In-Reply-To: <20010122121920.A3056@dogma.freebsd-uk.eu.org>
References:  <v04220802b68dd52c746d@[10.0.1.2]> <200101190333.UAA27007@usr08.primenet.com> <v04220802b68dd52c746d@[10.0.1.2]>

next in thread | previous in thread | raw e-mail | index | archive | help
At 07:19 AM 1/22/2001, j mckitrick wrote:
>|       Hungarian notation is not a sufficient feature to guarantee that
>| this will happen, but it is a stylistic aid that programers can use
>
>The way I understand it, the hungarian notation is most useful for the
>original writer who hasn't looked at his code for a while, or a maintenance
>programmer.  When reading the code, rather than flipping back to the
>declaration block repeatedly, you know what each variable is by its name.


This savings in time alone is enough to make me think it's worthwhile.

But it also has the advantage that you get to reuse the same variable name 
on different types without confusion.  For instance, intBuffer and 
charBuffer are two completely different (but perhaps related) 
variables.  This sort of thing becomes very valuable in a language like 
Visual Basic where a group of different controls may have related function 
(e.g., lblZipCode, cmdZipCode, and txtZipCode).

--Chip Morton



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20010122134036.01790960>