From: mfeldman@seas.gwu.edu (Michael Feldman)
Subject: Re: Attractive comments better?
Date: 12 Oct 1994 21:35:30 -0400
Date: 1994-10-12T21:35:30-04:00 [thread overview]
Message-ID: <37i2t2$o94@felix.seas.gwu.edu> (raw)
In-Reply-To: 37du0k$ir2@gnat.cs.nyu.edu
In article <37du0k$ir2@gnat.cs.nyu.edu>, Robert Dewar <dewar@cs.nyu.edu> wrote:
>Note that I am perfectly aware that some C/C++ programmers fully understand
>the structural importance of headers, but a distressing amount of code, even
>on large systems, is written without this awareness, and the headers are
>an uncommented mess.
And an amazing number of C books do not even take cognizance of the
notion that a header file can be used for this purpose (equivalent
to an Ada spec). I went shopping for intro C books recently, to find
one I could use in my file structures course, in which I'm easing the
students from Ada to "C with an Ada accent".
I had 4 main criteria for a book, which narrowed the search from _hundreds_
(in the Computer Literacy Bookshop) to just a very few:
1. diskette of programs, and (better) a compiler shrink-wrapped;
2. suitable for self-teaching (I'm not going to teach C ab initio,
because the students have had 2.5 semesters of Ada and some
assembler already;
3. did justice to files, especially binary ones;
4. used headers adequately
It was _very_ tough to find one. In the end, 3 and 4 got lower priority
than 1 and 2. But looking at all the junk books on the market, one can
easily see where all the junk code comes from.
>Now of course people could write similar useless messy Ada specs, but both
>the language and the culture emphasize the importance of specs so
>energetically that this is relatively unusual in the Ada world.
>
And the C culture, in general, emphasizes it very little.
Mike Feldman
------------------------------------------------------------------------
Michael B. Feldman - chair, SIGAda Education Working Group
Professor, Dept. of Electrical Engineering and Computer Science
The George Washington University - Washington, DC 20052 USA
202-994-5919 (voice) - 202-994-0227 (fax) - mfeldman@seas.gwu.edu (Internet)
"Non illegitimi carborundum." (Don't let the bastards grind you down.)
------------------------------------------------------------------------
next prev parent reply other threads:[~1994-10-13 1:35 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-05 3:00 Easily-Read C++? Ken Garlington
1994-10-05 9:42 ` Pierre Castori
1994-10-05 13:28 ` Robert Dewar
1994-10-06 2:20 ` Benjamin Ketcham
[not found] ` <CxDL8H.KGE@csn.org>
[not found] ` <milodCxH2E4.7F4@netcom.com>
[not found] ` <CxHJv0.Kw0@csn.org>
1994-10-12 17:03 ` John DiCamillo
[not found] ` <DAG.94Oct11080229@bellman.control.lth.se>
[not found] ` <37du0k$ir2@gnat.cs.nyu.edu>
1994-10-12 3:19 ` Attractive comments better? R_Tim_Coslet
1994-10-13 1:35 ` Michael Feldman [this message]
1994-10-05 14:26 ` Easily-Read C++? Eric S. Sessoms
1994-10-05 17:47 ` Kevin Cline
1994-10-05 22:02 ` Robert Dewar
1994-10-05 22:23 ` Richard Kenner
[not found] ` <124377@cup.portal.com>
1994-10-11 18:11 ` David Weller
1994-10-11 18:43 ` Robert Dewar
1994-10-12 13:15 ` Norman H. Cohen
1994-10-12 14:10 ` Robert Firth
1994-10-13 19:33 ` John D. Reading
1994-10-13 0:51 ` Keith Thompson @pulsar
1994-10-05 18:24 ` Magnus Kempe
[not found] ` <EACHUS.94Oct6101347@spectre.mitre.org>
[not found] ` <371a3p$nos@gnat.cs.nyu.edu>
[not found] ` <1994Oct7.153254.29848@swlvx2.msd.ray.com>
[not found] ` <374uke$8mo@delphi.cs.ucla.edu>
[not found] ` <37bno4$ko4@gnat.cs.nyu.edu>
1994-10-11 13:00 ` Robert Firth
1994-10-11 13:44 ` Casper H.S. Dik
1994-10-11 19:03 ` Robert Dewar
1994-10-12 16:38 ` John DiCamillo
1994-10-11 18:52 ` Robert Dewar
1994-10-12 13:49 ` Norman H. Cohen
[not found] ` <37eej8$6ie@siberia.gatech.edu>
1994-10-11 18:55 ` Robert Dewar
1994-10-12 13:35 ` John M. Mills
1994-10-12 19:48 ` Robert Dewar
[not found] ` <CxFr5B.K1G@news.otago.ac.nz>
[not found] ` <DAG.94Oct10075533@bellman.control.lth.se>
1994-10-11 17:50 ` Norman H. Cohen
[not found] ` <373vd2$39n@theopolis.orl.mmc.com>
[not found] ` <CxBvq7.GrH@inmet.camb.inmet.com>
[not found] ` <37bnic$kj2@gnat.cs.nyu.edu>
1994-10-11 18:02 ` Norman H. Cohen
[not found] ` <1994Oct7.110309@di.epfl.ch>
[not found] ` <DAG.94Oct7204142@bellman.control.lth.se>
[not found] ` <1994Oct7.210111.4494@nosc.mil>
[not found] ` <374i3o$c87@Starbase.NeoSoft.COM>
1994-10-12 17:37 ` "Tag" (Was: Easily-Read C++? (NOT)) David Emery
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox