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: f8c65,30e368bdb3310fe5 X-Google-Attributes: gidf8c65,public X-Google-Thread: 109fba,f292779560fb8442 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public From: ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) Subject: Re: Slander (was: Hungarian notation) Date: 1996/05/23 Message-ID: <4o0igm$nvh@goanna.cs.rmit.EDU.AU>#1/1 X-Deja-AN: 156229184 references: <31999F43.41C67EA6@scn.de> <319D2278.3F9A@netonecom.net> <4nr50r$jo2@ringer.cs.utsa.edu> <4nsgct$c3l@cville-srv.wam.umd.edu> <31A31739.2BE0@dmu.ac.uk> organization: Comp Sci, RMIT, Melbourne, Australia newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.edu,comp.lang.eiffel nntp-posting-user: ok Date: 1996-05-23T00:00:00+00:00 List-Id: Graham Perkins writes: >As for Hungarian notation, academics like myself are quite capable of taking >the helpful aspects (careful analysis of semantic structure of data space, >careful structuring of namespace to aid the reader's understanding of the >data space) and dropping those specific recommendations which seem designed >to assist assembler language programmers. It then becomes interesting to >look at different languages and their environments to see how much direct >support they give for organising naming schemes and how much you have to >introduce via comments, name prefix/postfix, or special tools. It is worth noting that the first time I saw the idea of systematically using prefixes written down was in a Xerox CSL ("blue and white") report which I read in 1984. I no longer recall the title or authors or when it was written, but I think it may have come out of some of the early Mesa work. The report suggested having a project "namesmith" who would manage the project glossary. This predates "Hungarian" by several years. There were three keys points that I recall: - build your identifiers out of words from the APPLICATION domain - if an abbreviation is a common term in the application domain use it, otherwise use abbreviations sparingly - to ensure that words and abbreviations are used consistently, maintain a project glossary and ensure that names in interfaces comply with this glossary. Whatever is good in Hungarian long predates it. (LClint can be used to check "Czech" and "Slovak" names...) -- Fifty years of programming language research, and we end up with C++ ??? Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.