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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10ad19,23963231b5359f74 X-Google-Attributes: gid10ad19,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-06-08 06:20:13 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newspeer.clara.net!news.clara.net!newspeer.highwayone.net!colt.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!feeder01.news.de.uu.net!news-1.bank.dresdner.net!not-for-mail From: James Kanze 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: Fri, 08 Jun 2001 15:16:38 +0200 Organization: Dresdner Bank AG Message-ID: <3B20D036.5B259E3F@dresdner-bank.com> 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> <9f8b7b$h0e$1@nh.pace.co.uk> <9f8r0i$lu3$1@nh.pace.co.uk> Reply-To: default@dresdner-bank.com NNTP-Posting-Host: ffzj09tz.bank.dresdner.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.7 [en]C-CCK-MCD drebazen10 (WinNT; I) X-Accept-Language: en,fr,de Xref: archiver1.google.com comp.lang.ruby:10482 comp.lang.ada:8398 comp.lang.awk:2891 comp.lang.clarion:21428 comp.lang.java.programmer:74738 comp.lang.pl1:896 comp.lang.vrml:3634 Date: 2001-06-08T15:16:38+02:00 List-Id: Pete Thompson wrote: > In most C/C++ code, I very rarely ever see anyone using an > underscore in a variable name. When they do, they usually come from > a Pascal background. I don't think that the people who thought up size_t necessarily come from a Pascal background. > It's fairly standard for C/C++ (and Java it would seem) to simply > capitalize each word in a variable name (with the exception of the > first word). When you're writing C/C++ code, your target audience > is generally other C/C++ programmers who already follows the same > (or similar) conventions. Underscores then become less needed. I've only rarely seen this convention in C/C++ outside of the telecoms domain (where the convention corresponds to the naming convention in the telecoms standards). The most frequent convention in C/C++ seems to be to not signal the start of a new word at all, and to abbreviate to a point that no one can recognize words anyway:-). (getenv, chmod, etc.) When the start of words is marked, it is with a _; just look at the C++ standard library. -- James Kanze mailto:kanze@gabi-soft.de Conseils en informatique orient�e objet/ Beratung in objektorientierter Datenverarbeitung Ziegelh�ttenweg 17a, 60598 Frankfurt, Germany Tel. +49(069)63198627