From owner-freebsd-chat Mon Jan 22 20:57:22 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 1EBAE37B402 for ; Mon, 22 Jan 2001 20:57:05 -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 f0N4v2103715 for ; Mon, 22 Jan 2001 23:57:03 -0500 Received: from ATLANTA.threespace.com [24.21.224.204] by mail.threespace.com with ESMTP (SMTPD32-6.05) id AF1A24840140; Mon, 22 Jan 2001 23:56:58 -0500 Message-Id: <4.3.2.7.2.20010122234546.0179bba8@mail.threespace.com> X-Sender: tech_info@mail.threespace.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 22 Jan 2001 23:50:55 -0500 To: FreeBSD Chat From: Technical Information Subject: Re: hungarian notation In-Reply-To: <200101230146.SAA07471@usr08.primenet.com> References: <4.3.2.7.2.20010122134036.01790960@mail.threespace.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 08:46 PM 1/22/2001, Terry Lambert wrote: > > 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). > >OTOH, we could just teach people to choose meaningful variable >names, and comment their code. > >I admit that it does act as a barrier to entry for Windows >programmers, since the Microsoft code is rife with that sort >of thing, and they are probably used to it. On the other hand, >I can read regular code, and I can read Hungariafied code, >while someone who has only been taught about Hungariafied code >is going to have a hard time hacking up bind or sendmail or >FreeBSD or the majority of useful and legacy code out there. Hmm...bind and sendmail rewritten in Visual Basic...well, I know what *I'm* going to be doing for the next few weeks. :-) >Personally, if I'm given my druthers, I'd like someone I hire >to not be artificially limited in the environments in which >they can be a productive coder. Seriously though, everybody has to start learning with some particular style, usually even before they learn that it's a style and not The Right Way (TM). I spend so much time stressing to my students that they should indent/capitalize/space things properly that they sometimes get confused when I later say that the indentation doesn't affect the program. I compare it to handwriting where kids are taught to write using very specific strokes only to eventually get older, become medical doctors, and lose all control over their penmanship. ;-) --Chip Morton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message