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: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-Thread: 108717,ea99940253996e3e X-Google-Attributes: gid108717,public X-Google-ArrivalTime: 2003-09-29 16:20:43 PST Path: news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!news-west.rr.com!news.rr.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail From: "Mike Bandor" Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> <863cefjy6l.fsf@strudel.futureapps.de> Subject: Re: ISO Studies of underscores vs MixedCase in Ada or C++ X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Mon, 29 Sep 2003 23:19:15 GMT NNTP-Posting-Host: 66.69.17.231 X-Complaints-To: abuse@rr.com X-Trace: twister.austin.rr.com 1064877555 66.69.17.231 (Mon, 29 Sep 2003 18:19:15 CDT) NNTP-Posting-Date: Mon, 29 Sep 2003 18:19:15 CDT Organization: Road Runner - Texas Xref: news1.google.com comp.software-eng:80 comp.programming:549 comp.lang.c++:1280 comp.lang.ada:233 Date: 2003-09-29T23:19:15+00:00 List-Id: I was once told by a TRW employee that on one particular project they had a coding standard that used underscores in lieu of running the names together. One of their "measures" of readability was to take copy of the code, remove the underscores, and run it through a spell checker. If it made it through the spell checker, it was deemed "readable". -- Mike Bandor, Software Engineer, BS-CS/SE Ada83, Ada95, C++, Delphi, JavaScript, WinHelp, PL/SQL, SQL, JOVIAL, MASM, Java, HTML Creator of MEGATERMS, Military Terms & Acronyms http://home.satx.rr.com/bandor/megaterm/megaterm.htm "Georg Bauhaus" wrote in message news:863cefjy6l.fsf@strudel.futureapps.de... > >>>>> "Frank" == Frank J Lhota writes: > > : Since identifiers are generally phrases (nown phrases > : for objects, verb phrases for procedures) and phrases often consist > : of more than one word, I find the use of underscores to be quite > : natural. > > But we should, I think, consider non-phrases or almost-non-phrases > being used as identifiers, and "juxtapositions" of identifiers. The > isolated identifiers might be shorter and thus more easily broken > into parts during the "reading process". > > theFools(42); > > the_fools (42); > > the_Fools(42); > > The_Fools (42); > > ... > > y := doYouMind.ifI(); > > y := do_you_mind.if_i (); > > y := do_You_Mind.if_I(); > > y := Do_You_Mind.If_I (); > > > takeAction(doYouMind.ifI(openTheWindow)); > > take_action (do_you_mind.if_i (open_the_window)); > > take_Action (do_You_Mind.if_I(open_The_Window)); > > Take_Action (Do_You_Mind.If_I (Open_The_Window)); > > So in context, your "Shakespearean" argument might still apply, > even if short identifiers are readable in dense mixed case? > > : There is an easy way to test which convention is more readable. Here > : is one of Shakespeare's sonnets rendered in the mixed case format: > > : FromFairestCreaturesWeDesireIncrease, > > > Also, looking closely at letters, fonts certainly do matter. > In a string such as "glubf()" it might or might not be easy > to distinguish the two characters 'f' and '('. It depends on > how ink would be spread, or on how pixels would appear on some > display screen. You can see this comparing foo(a) and oof(a), > using different fonts for the letters and symbols. > > Georg