comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wwgrol@ftw.rsc.raytheon.com>
Subject: Re: Bad coding standards - aesthetics are irrelevant
Date: Wed, 03 Jan 2001 15:12:25 -0500
Date: 2001-01-03T15:12:25-05:00	[thread overview]
Message-ID: <3A5387A9.967E8034@ftw.rsc.raytheon.com> (raw)
In-Reply-To: 3A429639.53D3EA9E@acm.org

> by a machine. For example, you might have an identifier: Rotor_RPM. Automatic
> case rules would have a hard time noting that RPM is an abbreviation and
> should be upper ....

If the "pretty printer" also does a spellcheck on every "word" in every
identifier, the algorithm could be

  if in standard dictionary, initial caps
  if in approved exceptions, case exactly as in list
  else flag as violation

This is still not foolproof--you have to be careful not to
approve an acronym that is also a regular word.  

You also need to avoid the process used by some:

  if not on list of approved abbreviations then
     add to list of approved abbreviations
  end if

:-) :-)

-- 
Wes Groleau
http://freepages.rootsweb.com/~wgroleau



      parent reply	other threads:[~2001-01-03 20:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-20 22:22 Bad coding standards - aesthetics are irrelevant Singlespeeder
2000-12-20 23:46 ` Larry Kilgallen
2000-12-21  4:12 ` Robert C. Leif, Ph.D.
2000-12-21 11:33   ` Robert Dewar
2000-12-21 15:59 ` Stephen Leake
2000-12-21 19:30   ` William Starner
2000-12-21 20:54     ` Florian Weimer
2000-12-22 21:33       ` William Starner
2000-12-22 14:57     ` Bruce or Tracy
2000-12-23  8:04       ` Simon Wright
2000-12-28  0:54         ` mark_lundquist
2000-12-22 15:06   ` Ira D. Baxter
2001-01-03 20:02   ` Wes Groleau
2000-12-21 23:46 ` Marin David Condic
2000-12-22  6:45   ` mark_lundquist
2000-12-28 16:05   ` Erik Magnuson
2000-12-28 20:16     ` Marin David Condic
2000-12-29  4:05       ` Robert Dewar
2000-12-29 12:19       ` Larry Kilgallen
2000-12-29 14:02       ` Tarjei T. Jensen
2000-12-29 16:23         ` Robert Dewar
2000-12-29 14:44       ` Erik Magnuson
2001-01-03 20:12   ` Wes Groleau [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox