From owner-freebsd-chat Thu Jan 18 9:26:18 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id A890537B699 for ; Thu, 18 Jan 2001 09:26:00 -0800 (PST) Received: (qmail 6578 invoked by uid 0); 18 Jan 2001 17:25:58 -0000 Received: from p3e9c2f6c.dip.t-dialin.net (HELO forge.local) (62.156.47.108) by mail.gmx.net (mail09) with SMTP; 18 Jan 2001 17:25:58 -0000 Received: from thomas by forge.local with local (Exim 3.16 #1 (Debian)) id 14JIoz-0000lb-00 for ; Thu, 18 Jan 2001 18:26:01 +0100 Date: Thu, 18 Jan 2001 18:26:01 +0100 To: freebsd-chat@freebsd.org Subject: Re: hungarian notation Message-ID: <20010118182601.A2936@crow.dom2ip.de> Mail-Followup-To: tmoestl@gmx.net, freebsd-chat@freebsd.org References: <20010118161259.A69693@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 +0000 From: Thomas Moestl Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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