comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Three simple questions
Date: 2000/10/11
Date: 2000-10-11T14:12:00+00:00	[thread overview]
Message-ID: <39E47530.EB5FE94B@averstar.com> (raw)
In-Reply-To: 2BED68CA963D6D55.A78776F656DA0452.75A61ED22116F1B6@lp.airnews.net

[NOTE: as you can see from the number of responses,
there is no such thing as a "simple" question about
a programming language...]

Frank Christiny wrote:
> 
> Friends,
> 
> Having arrived recently into the green Adian world, I am trying to
> assimilate all there is to know about this powerful, unfairly
> maligned computer language.  Most questions I have been able to
> answer from the FAQs here and there but there are three (so far) that
> have gone unanswered:
> 
> 1.  What is the correct pronunciation of Dr. Ichbiah's name?
>     Is the "ch" pronounced as in "Loch" or as in "each"?  Is the
>     final "h" is silent?

Eesh-bee-uh is how I pronounce it.  Jean will have to give his own
official version.  By the way, at one of the early Ada conferences,
someone claimed that "Ichbiah" was Swedish for "iceberg" and that
is why 90% of the complexity of Ada 83 was hidden below the surface.

Of course, with Ada 95 we tried to raise the iceberg a bit, and maybe
even smooth off a few of those dangerous irregularities.

> 
> 2.  What is the rationale for case-insensitivity in the language?
>     I am beginning to think it is mostly for historical reasons
>     (some machines didn't have two case letters way back then, etc.).
>     Are there any real technical reasons for why this is so even
>     after Ada95, besides preserving backwards compatibilty?

This is an explicit choice, and one that I think I would personally
make the same way again.  I have been teaching a "Programming Languages"
course recently, and it is surprising how frequently students, even those
conversant in C, are surprised that in some contexts, "Begin" and "BEGIN"
mean two different things.

One thing that some compilers do is warn the programmer if they
use different upper/lower casing in a reference than in the declaration.
E.g., if you declare something as "XYZ" but have a reference like "xyz"
then you would get a warning.  That seems like a friendly feature, and 
might even be worth enshrining in a language rule, or perhaps at least
a pragma.

> 
> 3.  How can one block-comment in Ada?
>     It can become cumbersome sometimes, adding all those "--"s in
>     front of a large block of code one wants to "test out" on the fly.
>     Again, are there any good technical-engineering reasons why this
>     feature was left out?

From my perspective, being a big fan of "grep" (the Unix version of
a file "search" command), I am always pleased that every line that
has been commented out starts with "--".  It can be quite distressing
to think that a line is executable, and then discover that it is
actually buried in a commented-out block.

Note that most programmer-friendly text editors have an ability to insert
something in front of every line of a block, or to remove same.

Finally, in languages that do provide block comments, I find they
rarely work right if the block being commented-out already contains
comments.  If you tend to comment at least once every 10 or so lines,
a block of code doesn't have to be very big to require significant
fiddling to allow block commenting to work.  By contrast, you can
always stick "-- " in front of every line, even if the line already
contains a comment.

Both of these latter two answers reflect in part Ada's philosophy of
favoring the "reader" over the "writer."  And since in most cases,
even for our own code, we end up being a more frequent reader than
a writer, this philosophy generally increases the overall productivity 
of the original programmer as well as some subsequent program 
reviewer/maintainer/enhancer.

> 
> Regards,
> --
> Frank Christiny                       fchris@pdq.net
> Sr. Software Engineer                 Lockheed Martin Space Operations
> Houston, Texas, USA                   http://freeweb.pdq.net/fchris/

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Commercial Division, AverStar (formerly Intermetrics)
(http://www.averstar.com/services/IT_consulting.html)  Burlington, MA  USA




  parent reply	other threads:[~2000-10-11  0:00 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-09  0:00 Three simple questions Frank Christiny
2000-10-09  0:00 ` John McCabe
2000-10-09  0:00   ` Frank Christiny
2000-10-10  0:00     ` Larry Kilgallen
2000-10-10  0:00       ` Case for case-sensitivity (Was: Three simple questions) Frank Christiny
2000-10-10  0:00         ` David Starner
2000-10-12  0:00           ` John English
2000-10-10  0:00         ` Ted Dennison
2000-10-10  0:00         ` mjsilva
2000-10-10  0:00           ` John Magness
2000-10-10  0:00         ` tmoran
2000-10-10  0:00         ` David C. Hoos, Sr.
2000-10-11  0:00         ` John English
2000-10-11  0:00           ` Frank Christiny
2000-10-12  0:00             ` Larry Kilgallen
2000-10-14  0:00             ` nickerson
2000-10-15  1:48               ` Robert Dewar
2000-10-15  0:00                 ` Jean-Pierre Rosen
2000-10-11  0:00         ` dmitry6243
2000-10-11  4:39         ` Ken Garlington
2000-10-10  0:00     ` Three simple questions John English
2000-10-10  0:00       ` Dale Stanbrough
2000-10-10  0:00         ` Larry Kilgallen
2000-10-10  0:00         ` John English
2000-10-10  0:00           ` Ted Dennison
2000-10-11  0:00             ` Tucker Taft
2000-10-11  0:00               ` Ted Dennison
2000-10-12  0:00                 ` Tucker Taft
2000-10-12  0:00                   ` The AI process (was: Three simple questions) Ted Dennison
2000-10-12  0:00                     ` Marc A. Criley
2000-10-12  0:00                       ` Tucker Taft
2000-10-16  0:00                   ` Three simple questions Robert A Duff
2000-10-11  0:11       ` wv12
2000-10-10  0:00         ` Larry Kilgallen
2000-10-14  3:25           ` Robert Dewar
2000-10-15  0:00             ` The Ludwig Family
2000-10-16  0:00               ` Florian Weimer
2000-10-17  0:00                 ` David Starner
2000-10-18  0:00                   ` Florian Weimer
2000-10-19  0:00                     ` David Starner
2000-10-21  0:00                       ` Robert Dewar
2000-10-21  0:00                         ` David Starner
2000-10-23  0:00                           ` Robert A Duff
2000-10-28 11:00                             ` Robert Dewar
2000-10-28 10:56                           ` Robert Dewar
2000-10-28 10:57                           ` Robert Dewar
2000-10-21  0:00                     ` Robert Dewar
2000-10-21  0:00                       ` David Starner
2000-10-16  3:10               ` Robert Dewar
2000-10-17  0:00                 ` The Ludwig Family
2000-10-16  0:00             ` James Hassett
2000-10-16  0:00               ` Robert Dewar
2000-10-16  0:00               ` Robert Dewar
2000-10-16  0:00             ` Robert A Duff
2000-10-11  0:00         ` David Gillon
2000-10-11  0:00         ` mjsilva
2000-10-11  0:00         ` John English
2000-10-11  0:00           ` Pascal Obry
2000-10-11  2:12         ` DuckE
2000-10-10  0:47   ` Larry Elmore
2000-10-10  1:16     ` Ed Falis
2000-10-11  3:47       ` Jeff Carter
2000-10-13  0:00         ` Philippe Torres
2000-10-13  0:00   ` Stefan Skoglund
2000-10-10  0:00 ` Pascal Obry
2000-10-11  3:59   ` Jeff Carter
2000-10-14  0:00   ` Keith Thompson
2000-10-10  0:42 ` Ken Garlington
2000-10-11  0:00 ` Larry Hazel
2000-10-11  0:00 ` Pat Rogers
2000-10-11  0:00 ` Marin David Condic
2000-10-13  0:00   ` Keith Thompson
2000-10-13  0:00     ` Marin David Condic
2000-10-13  0:00       ` Wes Groleau
     [not found]         ` <39EAEEEA.4F58C47C@cepsz.unizar.es>
2000-10-16  0:00           ` David Starner
2000-10-16  0:00             ` Robert A Duff
2000-10-16  0:00               ` Larry Kilgallen
2000-10-16  0:00                 ` Florian Weimer
2000-10-17  0:43                 ` Robert Dewar
2000-10-17  0:00                   ` Larry Kilgallen
2000-10-17  0:00                     ` Florian Weimer
2000-11-03  7:24                   ` E. E. Cummings (was Re: Three simple questions) Robert I. Eachus
2000-10-17  0:00               ` Three simple questions Keith Thompson
2000-10-17  0:00             ` Wes Groleau
2000-10-14  0:37       ` Ken Garlington
2000-10-14  0:00   ` Richard Kenner
2000-10-14  0:00     ` Laurent Guerby
2000-10-16  0:00       ` Robert A Duff
2000-10-16  0:00         ` Laurent Guerby
2000-10-17  0:00           ` Ronald Cole
2000-10-17  0:00         ` Wes Groleau
2000-10-14  0:00     ` Marin David Condic
2000-10-11  0:00 ` Tucker Taft [this message]
2000-10-12  1:05   ` Bjarne Bäckström
2000-10-13  0:00     ` Anders Wirzenius
2000-10-13  0:00       ` Bjarne Bäckström
2000-10-16  0:00         ` Anders Wirzenius
2000-10-13  0:00       ` Wes Groleau
2000-10-14  3:28         ` Robert Dewar
2000-10-11  0:00 ` Simon Wright
2000-10-14  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