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: 103376,2078dddcdcd8d83 X-Google-Attributes: gid103376,public From: clines@delete_this.airmail.net (Kevin Cline) Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/11 Message-ID: <87C44AD748359DF0.5E24E5EEBAEC0D8B.B6219AA25FB36D5D@library-proxy.airnews.net>#1/1 X-Deja-AN: 240793997 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> X-Orig-Message-ID: <337e395f.3072065@news.airmail.net> Organization: INTERNET AMERICA NNTP-Proxy-Relay: library.airnews.net Newsgroups: comp.lang.ada Date: 1997-05-11T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) wrote: >In my programming the name clash that I most often come across is something >like > > Parent : constant xxx := Parent (K); > >now of course I don't want to use the same name in both places here, and >I have not really settled on a convention. I don't like The_Parent, because >I find The_ too much noise. Often I use an abbreviation if the scope is >very small, something like > > Parnt : constant xxx := Parent (K); > >I know that some coders and some coding standards are allergic to >abbreviations, but I don't mind short identifiers and abbreviations if >they have a small local scope. > I think this is an important point. For identifiers that have small scope, 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.