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: 10ad19,23963231b5359f74 X-Google-Attributes: gid10ad19,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-05-25 04:44:03 PST Newsgroups: comp.lang.ruby,comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml Path: archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!howland.erols.net!portc.blue.aol.com.MISMATCH!portc03.blue.aol.com!uunet!dca.uu.net!ash.uu.net!world!demas From: demas@world.std.com (Charles Demas) Subject: Re: Long names are doom ? Mail-Copies-To: poster X-Humanitas: Wilde Irishe Loone Message-ID: Sender: demas@world.std.com Date: Fri, 25 May 2001 11:41:15 GMT References: <3B0DBD4A.82943473@my-deja.net> <9ekfrt$mja$0@pita.alt.net> Organization: Pot Kettle Black Xref: archiver1.google.com comp.lang.ruby:9901 comp.lang.ada:7764 comp.lang.awk:2593 comp.lang.clarion:20327 comp.lang.java.programmer:70654 comp.lang.pl1:634 comp.lang.vrml:3316 Date: 2001-05-25T11:41:15+00:00 List-Id: In article , Jan Schaumann wrote: >* Chris Smith wrote: >> "00001111" <00001111@my-deja.net> wrote ... >> > Anybody use variables/names longer than 31 character >> > and finds it really useful ? >> >> 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. No, it isn't. e.g. the "Gen" could have meant "Generate", and viewPrefsGenOptAction and viewPrefGenOptAction could easily get typed for the same variable. Using the full words prevents differing abreviations being used by different authors. Chuck Demas -- Eat Healthy | _ _ | Nothing would be done at all, Stay Fit | @ @ | If a man waited to do it so well, Die Anyway | v | That no one could find fault with it. demas@tiac.net | \___/ | http://www.tiac.net/users/demas