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: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-06-02 10:31:26 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!lnewspeer00.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!not-for-mail From: Jon Skeet 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: Sat, 2 Jun 2001 18:31:24 +0100 Message-ID: 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> <3B17B643.7150547F@ftw.rsc.raytheon.com> <3B17FE9F.3F959A26@ftw.rsc.raytheon.com> Organization: Peramon Technology Ltd. X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: fw.peramon.com X-Trace: 991503085 reading.news.pipex.net 12245 193.132.195.125 X-Complaints-To: abuse@uk.uu.net Xref: archiver1.google.com comp.lang.ruby:10336 comp.lang.ada:8019 comp.lang.awk:2699 comp.lang.clarion:20892 comp.lang.java.programmer:73001 comp.lang.pl1:709 comp.lang.vrml:3433 Date: 2001-06-02T18:31:24+01:00 List-Id: Wes Groleau wrote: > > No-one said anything about *depending* on a convention. *Encouraging* a > > I believe someone DID say Any references? I can't remember seeing it. > > It helps people to understand the code *without* prior familiarity with the > > > convention is a different matter, and in fact almost all experienced > > Java programmers I know of *do* seem to follow the conventions, to a > > greater or lesser extent. > > The eleven people that attended the same Java class I did are not following > this convention unless someone took them aside afterward and explained it to > them. If they were attending a Java class, I *suspect* I wouldn't call them experienced Java programmers. The more experienced you get, the more other people's code you read - and as almost all the code you read (especially Sun's, obviously) use the same conventions, it makes sense to adopt them. It helps not to have to remember where you got a package from in order to easily work out what the methods are likely to be called. > A written coding, naming, or commenting convention for encoding essential > information that can't be enforced (or isn't) is at best useless (because > you know you can't depend on it and at worst disastrous (because someone > will depend on it when its wrong). No, at best it's very helpful, as it means I can read other people's code faster than I would if they didn't follow the same convention as I do. In the middle it's reasonably helpful, as if someone uses *a* convention but it's not the same as me, then I can get to grips with their convention then I can learn to read their code quickly too. The worst situation is when someone doesn't follow a convention *at all*, changing capitalisation etc at a whim - at that stage, you have to look up method names etc every time you want to use them. > Any convention, enforced or not, for encoding information that is not > important is increasing the chance of being distracted from what IS > important. So you believe that package TeST;class SHowArGS{public static void main (String[]ARgS){for (int SOMeThINg=0;SOMeThINg