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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2078dddcdcd8d83 X-Google-Attributes: gid103376,public From: "John G. Volan" Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/12 Message-ID: <3376D77A.D17@sprintmail.com>#1/1 X-Deja-AN: 241028197 References: <5kjvcv$evt@news.cis.nctu.edu.tw> <5kn8ko$jcc@top.mitre.org> <1997May7.201035.2439@nosc.mil> <33727EEA.2092@sprintmail.com> <5kuf1j$17vi@uni.library.ucla.edu> <3373666A.31DFF4F5@spam.innocon.com> <3373EAB5.73A0@sprintmail.com> <87C44AD748359DF0.5E24E5EEBAEC0D8B.B6219AA25FB36D5D@library-proxy.airnews.net> Organization: Sprint Internet Passport Reply-To: johnvolan@sprintmail.com Newsgroups: comp.lang.ada Date: 1997-05-12T00:00:00+00:00 List-Id: Robert Dewar wrote: > > < almost any name will do if it has some mnemonic value. Because I don't like > to even remember which abbreviation was chosen, I use single letter variable > names for temporaries in small functions whenever possible.>> > > For me that goes too far, I have seen far too much code with cryptic > one letter identifiers like D, where short names would have helped a > lot (something like Depth). Interestingly, I note that this preference > for one letter identifiers often seems to go along with an allergy to > writing comments. Robert, can you see how your relaxed attitude towards small scopes can be abused by other programmers, and lead us down this slippery slope? I have been trying to make a distinction between two different kinds of abbreviations: (1) conventional abbreviations, which are established at a project level, documented, and used consistently and universally; and (2) ad hoc abbreviations, which are invented on the spot, idiosyncratic, and inconsistent. Often times, one engineer will choose one ad hoc abbreviation and another will choose and entirely different one -- for the same concept! Chaos! ------------------------------------------------------------------------ Internet.Usenet.Put_Signature (Name => "John G. Volan", Home_Email => "johnvolan@sprintmail.com", Slogan => "Ada95: The World's *FIRST* International-Standard OOPL", Disclaimer => "These opinions were never defined, so using them " & "would be erroneous...or is that just nondeterministic now? :-) "); ------------------------------------------------------------------------