comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Looking for good Ada95 book
Date: 1996/11/04
Date: 1996-11-04T00:00:00+00:00	[thread overview]
Message-ID: <dewar.847123116@merv> (raw)
In-Reply-To: 1996Nov4.083416.1@eisner


Michael says

"> I was not asked what my opinion was before forming this imaginary
> consensus, and I feel that we should reject all nonsense standards
> such as capitalization that take time away from making a program
> semantically correct (solving the problem correctly) and making
> it efficient."

(at least I hope it was Michael, sorry if I am confused).

In fact consistency of style is critical to producting reliable
maintainable programs. Sure, there are always some people who say
that they don't want to be constrained by such silly things as
petty consistency. I consider this viewpoint to be a menace since
it leads to notions of idiosyncratic personal style and code
ownership, which to me are anathema to realiable large scale
programming.

I think Michael's specific recommended style (lower case for everything)
does NOT lead to the most readable code, and I think it is a big
improvement that we are indeed seeing something like a general consensus
in coding style (I react here to the huge volume of Ada 95 code we receive
at report@gnat.com from thousands of users of GNAt, nearly all of whom adhere
to the lower case keywords, Mixed_Case_Identifier style. Not all, but nearly
all.

I know that one can have tools that automatically translate from one style
to another, but even if such tools work perfectly (they cannot in practice,
since naming often has semantic contnts, e.g. NOSC_Policy, not Nosc_Policy
may be preferred), they do not promote common interchange of code. It is
far better if, as in the C world, people converge on a single style that
everyone uses.

I think this convergence is much more important than what particular style
is chosen. As Tarski use to say, explaining why stanards are important,
it really doesn't matter if you drive on the left or the right, but it is
quite importnat that everyone agree.

I used to prefer the Ada-83 RM SHOUTING_IDENTIFIER style, since it is wht
I was used to, but after a painful transition, I now can't stand that
style any more. That's the real point, people get used to almost any
convention, so they might as well get used to a common comvention.

That is why Mike's book is disturbing, it creates a generation of Ada
programmers who have got used to a seriously non-standard style. Virtually
NO code that we see at report@gnat.com uses upper case keywords like BEGIN
and END. The only other use we see is SHOUTING_IDENTIFIERS, Ada 83 style, and
that is certainly disappearing fast.





  reply	other threads:[~1996-11-04  0:00 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-26  0:00 Looking for good Ada95 book Lars Lundgren
1996-10-28  0:00 ` Rapicault Pascal
     [not found]   ` <01bbc5d8$a3b24e00$6a9148a6@cornerstone.mydomain.org>
1996-10-29  0:00     ` Robert Dewar
1996-10-30  0:00       ` Michael Feldman
1996-11-02  0:00         ` Robert Dewar
1996-11-03  0:00           ` Robert A Duff
1996-11-03  0:00             ` Robert Dewar
1996-11-03  0:00           ` Matthew Heaney
1996-11-04  0:00           ` Michael F Brenner
1996-11-04  0:00             ` Larry Kilgallen
1996-11-04  0:00               ` Robert Dewar [this message]
1996-11-09  0:00                 ` Michael Feldman
1996-11-11  0:00                   ` Richard A. O'Keefe
1996-11-12  0:00                     ` Mark Shaw
1996-11-06  0:00               ` James Thiele
1996-11-08  0:00                 ` Stephen Leake
1996-11-06  0:00             ` Richard A. O'Keefe
1996-11-06  0:00               ` Robert Dewar
1996-11-06  0:00             ` Robert A Duff
1996-11-04  0:00           ` Norman H. Cohen
1996-11-04  0:00             ` Jerry Petrey
1996-11-06  0:00               ` Richard A. O'Keefe
1996-11-09  0:00               ` Michael Feldman
1996-11-05  0:00             ` Silliness (was: Looking for good Ada95 book) Adam Beneschan
1996-11-06  0:00               ` Richard A. O'Keefe
1996-11-06  0:00           ` Chris Morgan
1996-11-08  0:00           ` bill.williams
1996-11-09  0:00             ` Michael Feldman
1996-11-09  0:00           ` Looking for good Ada95 book Michael Feldman
1996-11-10  0:00             ` Lars Farm
1996-11-10  0:00               ` Robert Dewar
1996-11-11  0:00                 ` Lars Farm
1996-11-12  0:00                   ` Robert Dewar
1996-11-12  0:00                     ` Lars Farm
1996-11-14  0:00                       ` Capitalization Entropy (was: Looking for good Ada95 book) Scott James
1996-11-14  0:00                         ` Robert A Duff
1996-11-18  0:00                   ` Looking for good Ada95 book Richard A. O'Keefe
1996-11-12  0:00                 ` Michael Feldman
1996-11-17  0:00                   ` Robert Dewar
1996-11-18  0:00                     ` Richard Pattis
1996-11-19  0:00                       ` Do-While Jones
1996-11-20  0:00                       ` John English
1996-11-20  0:00                         ` Larry Kilgallen
1996-11-21  0:00                       ` FerretWoman
1996-11-22  0:00                         ` Richard A. O'Keefe
1996-11-24  0:00                           ` Fergus Henderson
1996-11-18  0:00                   ` Richard A. O'Keefe
1996-11-18  0:00                     ` Michael Feldman
1996-11-20  0:00                       ` Testing teaching belief? Richard A. O'Keefe
1996-11-20  0:00                         ` Robert Dewar
1996-11-20  0:00                         ` Robert Dewar
1996-11-22  0:00                           ` Richard A. O'Keefe
1996-11-29  0:00                             ` Debora Weber-Wulff
1996-12-01  0:00                               ` Robert Dewar
1996-11-14  0:00             ` Looking for good Ada95 book Richard A. O'Keefe
1996-10-31  0:00       ` Tom Pastuszak
1996-10-28  0:00 ` Larry Kilgallen
1996-11-04  0:00 ` John English
1996-11-06  0:00 ` Wolfgang Gellerich
  -- strict thread matches above, loose matches on Subject: below --
1996-11-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
replies disabled

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