From: "DuckE" <nospam_steved94@home.com>
Subject: Re: Sucking (was Re: How can I avoid Using a Semaphore? (long))
Date: Sat, 03 Feb 2001 03:21:32 GMT
Date: 2001-02-03T03:21:32+00:00 [thread overview]
Message-ID: <0PKe6.366080$U46.10801728@news1.sttls1.wa.home.com> (raw)
In-Reply-To: 95fbj0$nen$6@usenet.rational.com
> It seems clear enough what the style is... Each package has a full name,
> with an acronymic prefix. Then each identifier declared therein gets that
> same acronym as a suffix. OK... nope, sorry! :-) I think it would take
me
> more than 2 weeks to forget how I got along without that... :-)
Our code started in a different language (EPascal) where external functions,
procedures and type definitions were not easily discernable from local
definitions. Knowing the origin of these definition "at a glance" without
having to look it up has its advantages.
In Ada, I could certainly see eliminating these acronyms in favor of
qualifying these external definitions with their origins (ie:
Ada.Text_Io.Put_Line ).
> The style of "aFoobar" and "anApteryx" for type names seems like a
different
> form of the "The_Foobar" cop-out for parameter names -- both meant to
spare
> us the trouble of thinking up a parameter name that would be more
meaningful
> than just repeating the name of the type, am I right?
Our use of "a" or "an" to start a type definition simply adds instant
recognition of an identifier as a data type without regard to context. IMHO
this is not much different than quickly identifying the start of a sentence
with a capital letter.
What these conventions really buy us is time. When I look at a block of
code a great deal of information is available as hints from the coding
convention that keep me from having to look elsewhere for definitions.
[snip]
>
> Best Regards,
> Mark
>
next prev parent reply other threads:[~2001-02-03 3:21 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-13 16:18 How can I avoid Using a Semaphore? (long) DuckE
2001-01-15 1:06 ` How can I avoid Using a Semaphore? Nick Roberts
2001-01-15 3:17 ` Robert Dewar
2001-01-16 3:53 ` DuckE
2001-01-17 15:42 ` Nick Roberts
2001-01-20 18:16 ` DuckE
2001-01-20 19:16 ` Robert Dewar
2001-01-21 1:28 ` DuckE
2001-01-21 16:04 ` Robert Dewar
2001-01-21 23:23 ` DuckE
2001-01-22 0:28 ` mark_lundquist
2001-01-22 1:51 ` Robert Dewar
2001-01-23 2:36 ` DuckE
2001-01-22 0:35 ` Built-in types (was " mark_lundquist
2001-01-22 1:54 ` Robert Dewar
2001-01-22 16:18 ` mark_lundquist
2001-01-22 17:20 ` Robert Dewar
2001-01-22 23:17 ` Mark Lundquist
[not found] ` <m33deaaeks.fsf@ns40.infomatch.bc.ca>
2001-02-02 22:01 ` Mark Lundquist
[not found] ` <94km00$bv8$1@nnrp1.deja.com>
2001-02-02 22:03 ` Mark Lundquist
2001-01-21 16:53 ` Nick Roberts
2001-01-21 18:24 ` Robert Dewar
2001-01-23 0:21 ` Nick Roberts
2001-01-22 0:16 ` mark_lundquist
2001-01-22 16:51 ` How can I avoid Using a Semaphore? (long) mark_lundquist
2001-01-23 6:02 ` DuckE
2001-02-02 22:00 ` Sucking (was Re: How can I avoid Using a Semaphore? (long)) Mark Lundquist
2001-02-03 1:44 ` Jeffrey Carter
2001-02-03 3:21 ` DuckE [this message]
2001-02-05 20:07 ` Mark Lundquist
2001-02-06 7:16 ` Sven Nilsson
2001-02-02 22:18 ` How can I avoid Using a Semaphore? (long) Mark Lundquist
2001-02-03 3:01 ` DuckE
2001-02-02 21:38 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox