Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 18:26:01 +0100
From:      Thomas Moestl <tmoestl@gmx.net>
To:        freebsd-chat@freebsd.org
Subject:   Re: hungarian notation
Message-ID:  <20010118182601.A2936@crow.dom2ip.de>
In-Reply-To: <20010118161259.A69693@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Thu, Jan 18, 2001 at 04:12:59PM %2B0000
References:  <20010118161259.A69693@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 18, 2001 at 04:12:59PM +0000, j mckitrick wrote:
> What are everyone's thoughts on Hungarian notation?  Does it have a place in
> unix programming?
> 
> Just in case anyone hasn't heard of the term, it's used to make variable
> names descriptive of their type, e.g.
> 
> int iCounter;
> double dValue
> char szString;
> int* piPointer;
I think it's ugly. The type checking of modern C compilers is powerful
enough to detect abuse (and C++ will make errors out of the warnings in
most cases). The only case where it could make sense is the sz prefix in
the case that pascal type strings are also around. But luckily, almost
nobody will use pascal strings on unix, so it's not a problem.

	- thomas



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?20010118182601.A2936>