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: 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-27 04:39:50 PST Path: news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!news.indigo.ie!gerryq Newsgroups: comp.software-eng,comp.programming,comp.lang.c++,comp.lang.ada From: gerryq@indigo.ie (Gerry Quinn) Subject: Re: ISO Studies of underscores vs MixedCase in Ada or C++ References: <2cfd1a4e.0309252032.3e3c0a1a@posting.google.com> <3F747AEE.8AA623CD@Sonnack.com> X-Newsreader: News Xpress 2.01 Message-ID: <9Gedb.33665$pK2.61280@news.indigo.ie> Date: Sat, 27 Sep 2003 11:44:00 GMT NNTP-Posting-Host: 194.125.182.112 X-Complaints-To: abuse@eircom.net X-Trace: news.indigo.ie 1064662789 194.125.182.112 (Sat, 27 Sep 2003 12:39:49 BST) NNTP-Posting-Date: Sat, 27 Sep 2003 12:39:49 BST Organization: Eircom.Net http://www.eircom.net Xref: news1.google.com comp.software-eng:3 comp.programming:33 comp.lang.c++:54 comp.lang.ada:7 Date: 2003-09-27T11:44:00+00:00 List-Id: In article <3F747AEE.8AA623CD@Sonnack.com>, Programmer Dude wrote: >Jack Klein wrote: > >> Interestingly I see a lot of programmers who prefer CamelMode for >> function names, yet prefer under_scores in variable names. In every >> single case where I have checked, the programmer has done at least >> some coding for Windows and its Pascal, BASIC, etc., API. And in >> every single case they claim that is not where their style came from. > >I've tried just about every combination over the years. At one >point it was underscores in function names, not in data names. >OOP added enough other basic types of things it got hard to have >a style for each. Currently, I use lower_case_with_underscores >for local names and CamelCaseMode for functions/methods and >for global data. I use: ClassName // need not start with C FunctionName() m_MemberVariable // misc. variable m_pPointerVariable // common typed variable localVariable pLocalPointer SOME_CONSTANT I guess I could use underscore more if I wanted. Don't like typing it much, though. I think what I dislike about underscores is related to what some people like about them: they look like spaces. That interferes with my ability to break up a statement into individual identifiers. When someone posts code with lots of underscores, I find it hard to read. Gerry Quinn -- http://bindweed.com Kaleidoscopic Screensavers and Games for Windows Download free trial versions New screensaver: "Hypercurve"