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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-ArrivalTime: 2001-06-01 04:51:07 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!ams.uu.net!news.sarenet.es!not-for-mail From: Alvaro Segura 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: Fri, 01 Jun 2001 13:39:35 +0200 Organization: PTSS Message-ID: <3B177EF7.2A2470F4@facilnet.es> References: <3B0DBD4A.82943473@my-deja.net> <3B0DD011.88FCD00E@acm.org> <83WP6.3874$yc6.728572@news.xtra.co.nz> <3B1411D0.3AAF42E7@ftw.rsc.raytheon.com> <9f2nks$ibd$0@dosa.alt.net> Reply-To: asegura@facilnet.es NNTP-Posting-Host: infprxf-45.sarenet.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ruby:10305 comp.lang.ada:7964 comp.lang.awk:2671 comp.lang.clarion:20773 comp.lang.java.programmer:72642 comp.lang.pl1:690 comp.lang.vrml:3409 Date: 2001-06-01T13:39:35+02:00 List-Id: Chris Smith wrote: > If you're arguing for the View_... form in the Java language, then I'll have > to disagree. I disagree for two reasons: first, under standard conventions, > each type of name in Java has a specific meaning to those reading the code. > It helps people to understand the code *without* prior familiarity with the > vocabulary itself; at least I know whether an instance method is being > invoked on an object, or a class method is being invoked on a class. > Second, these standard conventions allow developers to make reasonable > guesses, and to more easily remember, the names of the methods and fields > they do commonly use. I'd hate to (as I have in C++ on occasion) use > several third party libraries in a project and have to remember that library > A capitalizes method names and uses underscores, but library B starts them > with lower case and no underscores and library C in turn adds a 'C' before > all class names. > > That's why consistency is a valid goal. Java *does* have a nearly universal > convention on naming of identifiers, and that makes things much easier, as > long as people follow it. > > Chris Smith Anyone likes the MS convention of using "lpstrzLastName" instead of just "LastName"? They say it helps you see the type of the variable. But what is a last name going to be? A floating-point number maybe? :-) Anyway I do like some consistency like capitalized class names and lowercase variable names, but not adding letters (my pet is a Dog, not a CDog or a TDog or a Dog_t).