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: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-ArrivalTime: 2001-06-01 07:20:13 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news.rwth-aachen.de!not-for-mail From: Marco Schmidt 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 16:20:00 +0200 Organization: Aachen University of Technology (RWTH) Message-ID: <6J8XO6qqiPVsPxJAQoFpcmliMmbS@4ax.com> 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> <3B177EF7.2A2470F4@facilnet.es> Reply-To: marcoschmidt@geocities.com NNTP-Posting-Host: freezer.kawo2.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: nets3.rz.RWTH-Aachen.DE 991405202 794 134.130.183.62 (1 Jun 2001 14:20:02 GMT) X-Complaints-To: abuse@rwth-aachen.de NNTP-Posting-Date: 1 Jun 2001 14:20:02 GMT X-Newsreader: Forte Agent 1.6/32.525 Xref: archiver1.google.com comp.lang.ruby:10310 comp.lang.ada:7972 comp.lang.awk:2675 comp.lang.clarion:20792 comp.lang.java.programmer:72685 comp.lang.pl1:693 comp.lang.vrml:3412 Date: 2001-06-01T14:20:02+00:00 List-Id: On Fri, 01 Jun 2001 13:50:22 -0000, revbob@the.rectory (Rev. Bob 'Bob' Crispen) wrote: > type Dogs is (German_Shepherd, Sheep_Dog, Dog_Pound_Dog); > Dog : Dogs; > >That is, plural for type names, singular for object names. You'd be >surprised how often that works out. The editors even adopted it as >their recommendation in an early edition of AQ&S. I think that's a good idea when dealing with enumeration types. However, there are cases where I would find it confusing. Example: a class (type) for a GUI component, a window. If that type's name would be plural, I'd presume that a variable of that type stores a collection of those components (buttons, windows, scrollbars). The other way round, if you make it the convention to always use plural, there is no more easy way of naming a type that includes a set of objects. If the language is case-sensitive, I think it's a good idea to use dog: Dog; unless there is an obvious way of naming the variable differently, giving more meaning to what it's supposed to do / be. Regards, Marco -- Java programming tips (last modified 2001-05-17): http://jiu.sf.net/javatips.html