From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,af40e09e753872c X-Google-Attributes: gidfac41,public X-Google-Thread: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,f292779560fb8442 X-Google-Attributes: gid109fba,public X-Google-Thread: f8c65,30e368bdb3310fe5 X-Google-Attributes: gidf8c65,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public From: "Paul D. DeRocco" Subject: Re: Hungarian notation Date: 1996/05/28 Message-ID: <31AA8AFE.79AE@ix.netcom.com>#1/1 X-Deja-AN: 157122927 references: <4adem2$b5s@mercury.IntNet.net> <4n6off$6e2@mikasa.iol.it> <3198F30F.2A2@zurich.ibm.com> <4nsg3f$liu@solutions.solon.com> <31a3b322.442404233@sqarc> <4o35bu$ut8@sol.caps.maine.edu> <4o3qih$25j@beta.nedernet.nl> content-type: text/plain; charset=us-ascii organization: Netcom x-netcom-date: Tue May 28 1:11:21 AM PDT 1996 mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.edu,comp.lang.eiffel x-mailer: Mozilla 2.0 (Win95; I) Date: 1996-05-28T01:11:21-07:00 List-Id: Jos A. Horsmeier wrote: > IMHO Hungarian notation is just a bunch of hulla baloo; it doesn't add > anything to the textual representation of the semantics of a piece of > code, i.e. it doesn't make things more readable. Hear, hear! I don't want to contribute to restarting World War I, but Hungarian notation makes things less readable, in my view, because the names are so damn long that what ought to fit onto a single line ends up taking many lines. Besides, I like to reserve long descriptive names for functions and other things of global scope, and use little one- or two-letter names for all formal parameters and locals. That way, if you see something like: for (i = 0; i < number_of_widgets; i++) ... you automatically know that i is just a temporary concept that has meaning during this particular algorithm, while number_of_widgets is a real THING that always exists. And as long as all functions fit on a page, and all locals are declared at the top of the function, it's pretty easy to glance up to see exactly what i is, if it isn't obvious from the context. I guess I'll never work for Bill Gates. Besides, I'll bet even Hungarians don't like Hungarian notation! -- Ciao, Paul D. DeRocco