comp.lang.ada
 help / color / mirror / Atom feed
From: steved@pacifier.com (Steve Doiel)
Subject: Re: IDENTIFIERS in Upper Case
Date: 1997/03/28
Date: 1997-03-28T00:00:00+00:00	[thread overview]
Message-ID: <5hfd5b$4ro$1@news.pacifier.com> (raw)
In-Reply-To: collins-2703970617290001@ratbert.cs.wm.edu


In article <collins-2703970617290001@ratbert.cs.wm.edu>, collins@cs.wm.edu 
says...

>Many reading studies have been done for general text (not programs)
>that all seem to indicate that all uppercase "requires concentrated
>attention and is slow to decipher." (Jan White, _Graphic design for
>the electronic age_) One reason is the monotonous rectangularity of
>uppercase text. Lowercase letters differ from each other in shape
>and so are easier to recognize -- ascenders, descenders, and their
>lack provide distinctive visual patterns. Even the dot over the "i"
>helps to distinguish "i" from "m," "n," and "v" in handwritten text.
>
The keynote address at Tri-Ada 95 shed a lot of light on this subject
for me.  A small part of the subject was pattern recognition.

Take for example the following code

  IF a < b THEN
    DoProc1( arg )
  ELBE
    DoProc2( arg )
  END IF;

You may (or may not) have noticed that I misspelled the word 'ELSE'.  I
occasionally have the compiler catch such a misspelling for me.

Ok.  What's my point?  My point is that when you look at the
construct you don't necessarily read the keywords.  When you see the
structure, particularly if it is consistantly formatted, you recognize
the construct and look directly to the condition for the IF and the
actions taken for each branch.

It's much the same as when you see a stop sign.  You may not actually read
the word "STOP", but rather you recognize the shape of the sign and know
what it is immediately.

It is for this reason that I believe that whatever convention you choose
it should be one that allows as much instant pattern recognition as possible.

The coding convention we use is more elaborate than others I have heard
suggested but conveys more information at a glance.

>
>(P.S. I know That RD just favors a consistent style and is flexible
>      enough to adopt any style. Consistency is good.)
>
>                         Bob Collins, collins@cs.wm.edu
Agreed.

Steve Doiel
steved@pacifier.com





  reply	other threads:[~1997-03-28  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-26  0:00 IDENTIFIERS in Upper Case Charles H. Sampson
1997-03-26  0:00 ` Matthew Heaney
1997-03-27  0:00 ` Jeff Burns
1997-03-27  0:00   ` Matthew Heaney
1997-03-28  0:00     ` Robert Dewar
1997-03-28  0:00     ` Jerry Petrey
1997-03-28  0:00       ` Robert A Duff
1997-03-28  0:00         ` Robert Dewar
1997-03-28  0:00     ` Robert A Duff
1997-03-28  0:00       ` William Clodius
1997-03-29  0:00         ` Robert A Duff
1997-03-28  0:00       ` Tom Moran
1997-04-09  0:00   ` Graham C. Hughes
1997-03-27  0:00 ` Michael F Brenner
1997-03-27  0:00 ` Bob Collins
1997-03-28  0:00   ` Steve Doiel [this message]
1997-03-28  0:00     ` Robert Dewar
1997-03-29  0:00       ` Doug Smith
1997-03-28  0:00     ` Robert Dewar
1997-03-29  0:00       ` Robert A Duff
1997-03-30  0:00         ` Robert Dewar
1997-04-01  0:00           ` Charles Lindsey
1997-04-03  0:00             ` John English
1997-04-04  0:00               ` Robert Dewar
1997-04-04  0:00               ` Robert Dewar
replies disabled

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