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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ea99940253996e3e X-Google-Attributes: gid103376,public X-Google-Thread: 108717,ea99940253996e3e X-Google-Attributes: gid108717,public X-Google-Thread: 109fba,ea99940253996e3e X-Google-Attributes: gid109fba,public X-Google-Thread: f43e6,ea99940253996e3e X-Google-Attributes: gidf43e6,public X-Google-ArrivalTime: 2003-10-01 21:23:42 PST From: Peter Ammon Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada Subject: Re: ISO Studies of underscores vs MixedCase in Ada or C++ Date: Wed, 01 Oct 2003 21:20:33 -0700 Organization: Apple Computer, Inc. Message-ID: References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> NNTP-Posting-Host: pammon.apple.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.apple.com 1065068437 12017 17.201.23.72 (2 Oct 2003 04:20:37 GMT) X-Complaints-To: abuse@news.apple.com NNTP-Posting-Date: Thu, 2 Oct 2003 04:20:37 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030913 Thunderbird/0.3a X-Accept-Language: en-us, en In-Reply-To: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!news.kjsl.com!news.spies.com!forum.apple.com!news.apple.com!not-for-mail Xref: archiver1.google.com comp.software-eng:9 comp.programming:186 comp.lang.c++:298 comp.lang.ada:95 Date: 2003-10-01T21:20:33-07:00 List-Id: Andy Glew wrote: > I am in search of any rigourous, > scientific, academic or industrial studies > comparing naming conventions in > C++ or similar languages such as > Ada: > > Specifically, are names formed with > underscores more or less readable > than names formed with MixedCase > StudlyCaps camelCase? [...] Since camelCase and MixedCase seem to be getting routed by underscore proponents, here's one example of where something in mixed case is significantly more readable. It's an excerpt from a bison grammar file I'm working on. classmethod : access_specifier method_type_specifier method_return_type_specifier method_declaration method_body In the body, I reference things like $4, which (for those who don't know) refers to the fourth symbol in that space delimited list above. Can you quickly count which is the fourth? I can't, since spaces look similar to underscores. Compare to classmethod : accessSpecifier methodTypeSpecifier methodReturnTypeSpecifier methodDeclaration methodBody The second is much more readable IMO. The effect is even more dramatic without Usenet's line wrapping. -Peter