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: 109fba,f292779560fb8442 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public X-Google-Thread: f8c65,30e368bdb3310fe5 X-Google-Attributes: gidf8c65,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public From: Richard Riehle Subject: Re: Hungarian notation Date: 1996/05/18 Message-ID: #1/1 X-Deja-AN: 155518220 references: <4ahka7$o9m@inrou.erno.de> <4n6off$6e2@mikasa.iol.it> <3198F30F.2A2@zurich.ibm.com> <4na2ur$gbl@oban.cc.ic.ac.uk> <31999F43.41C67EA6@scn.de> to: mAg content-type: TEXT/PLAIN; charset=US-ASCII organization: National University, San Diego 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 Date: 1996-05-18T00:00:00+00:00 List-Id: On Thu, 16 May 1996, mAg wrote: > Hungarian Notation is an excellent concept, but I am sure that it will be > appreciated only by the programmers who have to work with serious code and > maintain it for years. For others who write smaller programs, it may not > even be necessary, because there is not need to convey the implementation > specific stuff in the variable name, because they can shout and ask the > other programmer in the next office... I initially disliked Hungarian notation. But I have been programming long enough to know that my first impression of a new idiom is almost always influenced by my most current experience. Apparently, Hungarian notation was invented in one department at Microsoft to help solve the traceability problem. It apparently did well what it was supposed to do. Traceability in large-scale or complex C programs has always been a bit dicey. The question is whether we still have that original problem to solve. I believe that traceability is not as much of a problem in Eiffel, Ada, or even C++. Fortunately, Eiffel and Ada can simply ignore Hungarian notation except when interfacing with C routines. C++ remains mired in the tarpits of its ancestral language, C, so it is not easy to ignore the large body of code already develped using Hungarian notation. In any case, this notation is not so terrible as to cause permanent psychological damage, so I suggest we might as well just get used to it when we have to code in C or C++. Bring a sense of humor to it, and simply think of it as a "quaint" artifact of an earlier time. Richard Riehle