[Prev][Next][Index][Thread]
(Fwd) [comp.object] Naming Conventions and the `_'.
Hahah! This was good, tho everyone knows C++ is pale in comparison to Perl ;^)
Path: news.e-z.net!news.us.world.net!news.inc.net!uwm.edu!cs.utexas.edu!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!news.primenet.com!news.primenet.com!not-for-mail
From: Ketil Z Malde <[email protected]>
Newsgroups: alt.humor.best-of-usenet
Subject: [comp.object] Naming Conventions and the `_'.
Followup-To: alt.humor.best-of-usenet.d
Date: 25 Sep 1996 13:38:01 -0700
Organization: best of usenet humor
Lines: 38
Approved: [email protected]
Message-ID: <[email protected]>
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. See .sig below.
X-Submissions-To: [email protected]
X-FAQ-Is-At: ftp://ftp.primenet.com/users/b/bogrow/ahbou/ahboufaq.txt or mailto:[email protected]
X-Posted-By: [email protected] (bogrow)
Status: N
Subject: Re: Naming Conventions and the `_'.
From: [email protected] (Robert C. Martin)
Newsgroups: comp.object
Tim Ottinger <[email protected]> writes:
Kevin K. Lewis wrote:
>
> Would anyone like to comment on the various naming conventions being
> used in "object-oriented" software (specifically, C++)? I know there
> are several, but I am interested in comments concerning the following
> two styles:
>
> 1. ThisIsAClassName, thisIsAVariableName, THISISACONSTANT
>
> 2. This_Is_A_Class_Name, this_is_a_variable_name, THIS_IS_A_CONSTANT
IPreferTheFormer. IFindItMuchEasierToRead. TheIdentifiersTakeUpALotLessSpace.
AndIDon'tHaveToLearnWhereTheDamnedUnderscoreKeyIs. AllRightThinkingEngineers
ShouldAgreeWithMe. ThoseWhoUseUnderscoresAreUnderscoreists. TheyAdhereTo
CowboyVariableNamingDisciplinesAndFailToSeeTheBeautyOfLogicalVariableNames
WithoutUnderscores. SoThere.
Of_course_the_C++_Standards_committee_seems_to_like_the_latter.__kewords_such
as_dynamic_cast,_static_cast,_const_cast,_reinterpret_cast,_and_other
identifiers_like_wchar_t,_time_t,_size_t,_etc,_etc,_bear_this_out.__
Cobol-used-to-use-hyphens-as-separators. And$I$have$seen$dollar$signs$used$
in$some$strange$environments.
Maybewhatweneedistojusteliminateallseperatorsalltogether.Thatwaywewouldn'tneed
toargueaboutthemeveragain.Itreallyisn'tthathardtoreaditis?
--
Moderators accept or reject articles based solely on the criteria posted
in the Frequently Asked Questions. Article content is the responsibility
of the submitter. Submit articles to [email protected]. To write
to the moderators, send mail to [email protected].
--
-=TED=- O- JAPH [email protected]