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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-Thread: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-Thread: 108717,ea99940253996e3e X-Google-Attributes: gid108717,public X-Google-ArrivalTime: 2003-09-26 08:40:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!west.cox.net!east.cox.net!peer01.cox.net!cox.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> 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: Fri, 26 Sep 2003 15:40:00 GMT NNTP-Posting-Host: 151.203.216.205 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1064590800 151.203.216.205 (Fri, 26 Sep 2003 11:40:00 EDT) NNTP-Posting-Date: Fri, 26 Sep 2003 11:40:00 EDT Xref: archiver1.google.com comp.software-eng:20803 comp.programming:63310 comp.lang.c++:245146 comp.lang.ada:42990 Date: 2003-09-26T15:40:00+00:00 List-Id: Underscores are basically a way to provide spaces in an identifier. 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. The opposing argument is that underscores are too large, and that a case change is a more readable way to indicate how to divide the decomposition into words. To me, the upper / lower case method of delineate the words in an indentifier has always looked like the transcript of a very fast talker. Yes, you can make out the words, but just barely. Moreover, the use of letter case to delineate words prohibits any other use of letter case. It rules out using all caps for a certain category of identifiers, for example. 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, ThatTherebyBeautysRoseMightNeverDie, ButAsTheRiperShouldByTimeDecease, HisTenderHeirMightBearHisMemory: ButThouContractedToThineOwnBrightEyes, FeedstThyLightsFlameWithSelfSubstantialFuel, MakingAFamineWhereAbundanceLies, ThySelfThyFoeToThySweetSelfTooCruel: ThouThatArtNowTheWorldsFreshOrnament, AndOnlyHeraldToTheGaudySpring, WithinThineOwnBudBuriestThyContent, AndTenderChurlMakstWasteInNiggarding: PityTheWorldOrElseThisGluttonBe, ToEatTheWorldsDueByTheGraveAndThee It may be a matter of taste, but I certainly found the original sonnet to be more readable and more beautiful.