From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: a question of form
Date: Wed, 27 Aug 2014 00:00:47 -0500
Date: 2014-08-27T00:00:47-05:00 [thread overview]
Message-ID: <ltjom0$5c2$1@loke.gir.dk> (raw)
In-Reply-To: ltig8o$8dl$2@dont-email.me
"Jeffrey Carter" <spam.jrcarter.not@spam.not.acm.org> wrote in message
news:ltig8o$8dl$2@dont-email.me...
> On 08/26/2014 12:04 AM, Nasser M. Abbasi wrote:
>>
>> lower case variables is best with _,
>>
>> like_this
>>
>> I find using Upper_First_Letter not good for reading:
>>
>> Like_This
>
> I (and most others, it seems) find Initial_Caps easier to read for all
> identifiers.
I've always used title capitalization for identifiers. That is, capitalize
them like a title (which is almost, but not quite the same as Initial_Caps).
Thus, Good_and_Bad rather than Good_And_Bad. This gets me into trouble with
the RM, because that requires capitalizing words that one *never*
capitalizes in English. Personally, I think most people use all Initial_Caps
because it does not require thinking (and thus it can be enforced with a
simple tool -- although title case isn't hard to enforce with a tool, one
just needs a list of the words that aren't capitalized [the Janus/Ada pretty
printer supports title case identifiers that way]).
Randy.
next prev parent reply other threads:[~2014-08-27 5:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 20:33 a question of form gdotone
2014-08-25 20:56 ` Simon Clubley
2014-08-25 22:08 ` Ludovic Brenta
2014-08-26 1:06 ` gdotone
2014-08-26 7:04 ` Nasser M. Abbasi
2014-08-26 17:31 ` Jeffrey Carter
2014-08-27 5:00 ` Randy Brukardt [this message]
2014-08-27 7:17 ` AdaMagica
2014-08-28 11:56 ` G.B.
2014-08-28 13:23 ` Simon Wright
2014-08-28 14:08 ` G.B.
2014-08-28 19:26 ` Randy Brukardt
2014-08-28 20:19 ` Simon Wright
2014-08-28 20:48 ` Simon Wright
2014-08-28 18:28 ` Jeffrey Carter
2014-08-28 19:35 ` Randy Brukardt
2014-08-29 11:55 ` G.B.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox