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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-05-24 23:12:12 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dc1.nntp.concentric.net!sjc1.nntp.concentric.net!newsfeed.concentric.net!global-news-master From: Patricia Shanahan Newsgroups: comp.lang.java.programmer,comp.lang.ada Subject: Re: Long names are doom ? Date: 25 May 2001 06:12:08 GMT Organization: Concentric Internet Services Message-ID: <3B0DF82B.D0DCD7B@acm.org> References: <3B0DBD4A.82943473@my-deja.net> <9ekfrt$mja$0@pita.alt.net> NNTP-Posting-Host: 64.0.146.14 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.java.programmer:70597 comp.lang.ada:7749 Date: 2001-05-25T06:12:08+00:00 List-Id: "(null)" wrote: > > In article , > Jan Schaumann wrote: > >* Chris Smith wrote: > >> Yes, I do occasionally use very long identifiers. Normally, I do so when I > >> am using a lot of identifiers according to a set naming convention. > >> For example, I might, in a Swing GUI application, declare an Action subclass > >> called: > >> > >> viewPreferencesGeneralOptionsAction > >> > >> That's 35 characters. If that's really my menu structure (that is, view | > >> prefs | general | options) then I really want to use that variable name. > > > >viewPrefsGenOptAction - that's 21, and just as readable. > > viewPrefsGenOptAction? Do you mean soething like a procedure > to VIEW PREFerences implemented as a GENeric unit and the procedure > has an OPTional ACTION. Perhaps it will VIEW the PREFerenceS and GENerate the OPTimal ACTION? Why did "Preferences" get to keep the final "s", being abbreviated to "Prefs", but "Options" went to "Opt"? Faced with that identifier, in its original meaning, I would keep putting the "s" on both, or dropping it from both, or getting it the wrong way round. > > The moral of the story, all names are "readable" to the author. > The real test is what other people might think. Abbreviations are > good, but only if they aren't ambiguous. > > -- > ======================================================================= > Life is short. | Craig Spannring > Bike hard, ski fast. | cts@internetcds.com > --------------------------------+------------------------------------