From owner-freebsd-chat Thu Jan 18 19:34:32 2001 Delivered-To: freebsd-chat@freebsd.org Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (Postfix) with ESMTP id BC94D37B69C for ; Thu, 18 Jan 2001 19:34:15 -0800 (PST) Received: (from daemon@localhost) by smtp02.primenet.com (8.9.3/8.9.3) id UAA21522; Thu, 18 Jan 2001 20:28:42 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp02.primenet.com, id smtpdAAAURaWXP; Thu Jan 18 20:28:28 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id UAA27007; Thu, 18 Jan 2001 20:33:58 -0700 (MST) From: Terry Lambert Message-Id: <200101190333.UAA27007@usr08.primenet.com> Subject: Re: hungarian notation To: jcm@FreeBSD-uk.eu.org (j mckitrick) Date: Fri, 19 Jan 2001 03:33:57 +0000 (GMT) Cc: freebsd-chat@FreeBSD.ORG In-Reply-To: <20010118161259.A69693@dogma.freebsd-uk.eu.org> from "j mckitrick" at Jan 18, 2001 04:12:59 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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; It makes it harder than hell to call "decorated" library functions from monocase languages, like FORTRAN, COBOL, etc.. I think the _ONE_ valid thing to come out of ANSI prototypes (other than making it the programmers job to do the work that belongs in the linker; linker writers are lazy... but I digress) is that you don't need this BS, since the compiler will whine at you when you have type clashes anyway. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message