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: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-05-24 19:28:04 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!news.alt.net!usenet From: "Chris Smith" Newsgroups: comp.lang.ruby,comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml Subject: Re: Long names are doom ? Date: Thu, 24 May 2001 20:25:57 -0600 Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Message-ID: <9ekfrt$mja$0@pita.alt.net> References: <3B0DBD4A.82943473@my-deja.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ruby:9866 comp.lang.ada:7739 comp.lang.awk:2575 comp.lang.clarion:20294 comp.lang.java.programmer:70554 comp.lang.pl1:622 comp.lang.vrml:3303 Date: 2001-05-24T20:25:57-06:00 List-Id: "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. This is not to say that I very frequently use such names, but when I need to for consistency, I'd really hate for the language to stand in my way. > - "never seen a well written, legible program > that uses any identifiers longer than 18-20 characters..". Mostly true, but I disagree with the absolute statement. > - "long variables names are *hard* to read. And, you have to > read though all the characters of every instance of them...". Definitely true. > - "it degrades the legibility of a program to use identifiers that > can't be easily remembered...." Definitely true. For those reasons, I don't agree with regularly using long variable names unless, like in the example above, they make intuitive sense and there's some systematic reason for that name choice. Chris Smith