comp.lang.ada
 help / color / mirror / Atom feed
From: att!cbnewsl!willett@ucbvax.Berkeley.EDU  (david.c.willett)
Subject: Re: Ada micro Style for Programs in Introductory Textbooks
Date: 6 Sep 91 21:09:34 GMT	[thread overview]
Message-ID: <1991Sep6.210934.736@cbnewsl.cb.att.com> (raw)

In article <1991Sep5.190551.8272@beaver.cs.washington.edu>, pattis@june.cs.wash
ington.edu (Richard Pattis) writes:
> I would like to appeal to the net for some advice. Should I toss out my own 
> style and typeset my code exactly like the LRM?

[ Description of Prattis' goals and alternative style deleted ]

> 
>   4) I have seen styles (out of PARC?) where the case of the first letter is
> used to separate local from non-local accesses. I was planning on mentioning
> this (as well as hungarian notation, which is not so necessary in Ada compare
d
> to C) but not advocating it. Are there other important conventions that I
> should include?
> 
> 
> Rich
> 
> 
> You can post your advice on the net (other fledgling Ada authors may be
> watching) or send mail to me (indicate whether it is private or repostable).

[Rich's sig deleted]

Coding style is clearly a personal thing.  I believe that it is much like 
handwriting.  Each person develops a style of their own but is heavily 
influenced by styles to which they are initially exposed.  In my own case,
I tended to code in a FORTRANesque style until I took my first PASCAL course.
Since PASCAL was free-form, I had to adapt.  I've been following that style
since.

My point is that you should consider the influence of your style on the 
student's coding habits.  My opinion is that you should follow some standard,
preferably the LRM.  If you feel that you cannot for pedagogical reasons, 
****PLEASE SAY SO*** in your text so that the student can make their own 
decision.  I prefer reserved words in boldface and mixed case identfiers.
I believe that this style helps the student learn the symantics of the 
language.  Mixed case for identifiers is more natural (English-like) and
strikes me as less intimidating to the novice.

My introductory texts used this style.  I did not find the lack of "boldface"
on my terminal an impediment.

				Good Luck with THE_BOOK,
					Dave

             reply	other threads:[~1991-09-06 21:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-09-06 21:09 david.c.willett [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-09-10 16:36 Ada micro Style for Programs in Introductory Textbooks Mr. D. Harter
1991-09-10  3:47 Robert I. Eachus
1991-09-09 15:31 Ada micro style for programs in introductory textbooks Frank Pappas
1991-09-06 19:56 Ada micro Style for Programs in Introductory Textbooks munck
1991-09-06 18:06 agate!bionet!ucselx!sol.ctr.columbia.edu!spool.mu.edu!tulane!uno.edu!JNCS
1991-09-06 17:48 MARTIN%SCRANTON.BITNET
1991-09-06 12:50 europa.asd.contel.com!darwin.sura.net!noc.sura.net!haven.umd.edu!cs.wvu.w
1991-09-06 10:25 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!uvaarpa!vger.nsu.edu!g_
1991-09-06  2:35 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!jpl-d
1991-09-05 23:52 munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!chook.cs.adel
1991-09-05 21:53 David Eichmann
1991-09-05 21:00 Bill Yow
replies disabled

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