From owner-freebsd-chat Mon Jan 22 10:50:10 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mail5.registeredsite.com (mail5.registeredsite.com [64.224.9.14]) by hub.freebsd.org (Postfix) with ESMTP id 9DAC837B400 for ; Mon, 22 Jan 2001 10:49:52 -0800 (PST) Received: from mail.threespace.com (mail.threespace.com [216.247.134.44]) by mail5.registeredsite.com (8.11.1/8.11.1) with ESMTP id f0MIng104067 for ; Mon, 22 Jan 2001 13:49:46 -0500 Received: from ATLANTA.threespace.com [24.21.224.204] by mail.threespace.com with ESMTP (SMTPD32-6.05) id A0BF16010142; Mon, 22 Jan 2001 13:49:35 -0500 Message-Id: <4.3.2.7.2.20010122134036.01790960@mail.threespace.com> X-Sender: tech_info@mail.threespace.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 22 Jan 2001 13:48:10 -0500 To: FreeBSD Chat From: Technical Information Subject: Re: hungarian notation In-Reply-To: <20010122121920.A3056@dogma.freebsd-uk.eu.org> References: <200101190333.UAA27007@usr08.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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