comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: ada writing guide
Date: 2000/04/15
Date: 2000-04-15T00:00:00+00:00	[thread overview]
Message-ID: <kYSJ4.472$4_4.215990@news.pacbell.net> (raw)
In-Reply-To: 8d82lq$4fp$1@hobbes2.crc.com

> http://www.delorie.com/gnu/docs/GNU/standards_toc.html
>
> This provides a coding stabndard for C, which could be considered "strict."

It's hard to know what to say.  A document dated 1999 that gives a
standard for C and cautions against using any other language, including
C++.  A document whose "C style" part is all of 550 lines, or ten pages,
in length, whereas "Ada Quality and Style" manages somehow to take 270
pages.  A "strict" standard for the "C" language with statements like:

"Please use formfeed characters (control-L) to divide the program
into pages"

"Insert extra parentheses so that Emacs will indent the code properly."

"We find it easier to read a program when it has spaces before the
operator, not after one. Here is the right way:"

"Please put two spaces after the end of a sentence in your comments,
so that the Emacs sentence commands will work."

"Please write the comments in a GNU program in English,
because English is the one language that nearly all
programmers in all countries can read."

I guess the adjective "strict" does apply in cases like:

"It is important to put the open-brace that starts the
body of a C function in column zero, and avoid putting
any other open-brace or open-parenthesis or open-bracket
in column zero. Several tools look for open-braces in
column zero to find the beginnings of C functions. These
tools will not work on code not formatted that way.

It is also important for function definitions to start the name of the
function in column zero. This helps people to search for function
definitions, and may also help certain tools recognize them."

I prefer Ada, and even if I was coding in GNU C, I'd read Ada Quality
and Style for ideas.




  reply	other threads:[~2000-04-15  0:00 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12  0:00 ada writing guide Riyaz Mansoor
2000-04-12  0:00 ` Ted Dennison
2000-04-12  0:00   ` Robert Dewar
2000-04-13  0:00     ` Ted Dennison
2000-04-13  0:00     ` Jeffrey D. Cherry
2000-04-13  0:00       ` Samuel T. Harris
2000-04-13  0:00       ` Paul Graham
2000-04-13  0:00       ` Ted Dennison
2000-04-13  0:00         ` Jeffrey D. Cherry
2000-04-13  0:00           ` Ted Dennison
2000-04-14  0:00             ` Pascal Obry
2000-04-14  0:00               ` Ted Dennison
2000-04-14  0:00                 ` Pascal Obry
2000-04-17  0:00                   ` Ted Dennison
2000-04-17  0:00                     ` Florian Weimer
2000-04-17  0:00                       ` Ted Dennison
2000-04-17  0:00                         ` Ted Dennison
2000-04-18  0:00                         ` Robert Dewar
2000-04-18  0:00                           ` Ted Dennison
2000-04-18  0:00                             ` Robert Dewar
2000-04-18  0:00                               ` Ted Dennison
2000-04-18  0:00                                 ` Brian Courtney
2000-04-19  0:00                                   ` Florian Weimer
2000-04-19  0:00                                   ` Brian Courtney
2000-04-19  0:00                                 ` Florian Weimer
2000-04-19  0:00                                   ` Ted Dennison
2000-04-24  0:00                                     ` Samuel T. Harris
2000-04-19  0:00                                   ` Robert Dewar
2000-04-20  0:00                                     ` Ted Dennison
2000-04-20  0:00                                       ` Florian Weimer
2000-04-20  0:00                                         ` Ted Dennison
2000-04-24  0:00                                   ` Samuel T. Harris
2000-04-24  0:00                                     ` Robert A Duff
2000-04-25  0:00                                     ` Robert Dewar
2000-04-27  0:00                                       ` Samuel T. Harris
2000-04-20  0:00                         ` Samuel T. Harris
2000-04-20  0:00                           ` Ted Dennison
2000-04-21  0:00                             ` Robert Dewar
2000-04-21  0:00                             ` Robert Dewar
2000-04-21  0:00                               ` Ted Dennison
     [not found]                               ` <38FFd43e.70f1bb7d@telepath.com>
2000-04-21  0:00                                 ` Larry Kilgallen
2000-04-24  0:00                             ` Samuel T. Harris
2000-04-24  0:00                               ` Robert A Duff
2000-04-27  0:00                                 ` Samuel T. Harris
2000-04-20  0:00                         ` Emmanuel Briot
2000-04-20  0:00                           ` Ted Dennison
2000-04-13  0:00           ` Robert A Duff
2000-04-16  0:00           ` Simon Wright
2000-04-16  0:00             ` Robert Dewar
2000-04-13  0:00         ` Ray Blaak
2000-04-15  0:00         ` Robert Dewar
2000-04-16  0:00           ` Simon Wright
2000-04-13  0:00   ` Riyaz Mansoor
2000-04-13  0:00     ` David C. Hoos, Sr.
2000-04-13  0:00     ` Ted Dennison
2000-04-12  0:00 ` Robert Dewar
2000-04-13  0:00   ` Riyaz Mansoor
2000-04-13  0:00     ` Jean-Marc Bourguet
2000-04-15  0:00     ` Robert Dewar
2000-04-14  0:00 ` Riyaz Mansoor
2000-04-14  0:00   ` Robert A Duff
2000-04-14  0:00   ` tmoran
2000-04-14  0:00     ` David C. Hoos, Sr.
2000-04-15  0:00       ` tmoran [this message]
2000-04-17  0:00         ` Marc A. Criley
2000-04-15  0:00       ` Robert Dewar
2000-04-17  0:00       ` Ted Dennison
2000-04-18  0:00         ` Geoff Bull
2000-04-14  0:00   ` Ted Dennison
2000-04-14  0:00     ` Marin D. Condic
2000-04-15  0:00   ` Robert Dewar
2000-04-15  0:00   ` Robert Dewar
2000-04-15  0:00     ` Marin D. Condic
2000-04-15  0:00       ` Ken Garlington
2000-04-27  0:00         ` gbull
2000-04-16  0:00       ` Ehud Lamm
replies disabled

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