home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!uvaarpa!concert!borg!news_server!martinc
- From: martinc@hatteras.cs.unc.edu (Charles R. Martin)
- Newsgroups: comp.software-eng
- Subject: Re: C code Layout
- Message-ID: <MARTINC.92Dec19134216@hatteras.cs.unc.edu>
- Date: 19 Dec 92 18:42:16 GMT
- References: <1992Dec16.083733@eklektix.com> <MARTINC.92Dec16111734@hatteras.cs.unc.edu>
- <1992Dec17.081451@eklektix.com> <1992Dec18.063344.8617@netcom.com>
- Sender: news@cs.unc.edu
- Organization: UNC Department of Computer Science
- Lines: 33
- In-reply-to: mcgregor@netcom.com's message of 18 Dec 92 06:33:44 GMT
-
- In article <1992Dec18.063344.8617@netcom.com> mcgregor@netcom.com (Scott Mcgregor) writes:
-
- In article <1992Dec17.081451@eklektix.com> rcd@raven.eklektix.com (Dick Dunn) writes:
- >The point of that long ramble is that if you've got code with lots of
- >detailed comments, you can push past a hardware barrier to displaying it,
- >but you'll still run into eye/brain limits. THOSE limits--our mental and
- >physiological limits--we have to take into account when writing code.
-
- This point is right on. And once you realize this, you realize that
- once you hold the choice of language constant (e.g. standard C code
- conventions) you've strongly limited the freedom to get bigger chunks.
- That's one of the reasons I was very interested in the alternate
- schematic representation of the code, which resulted in a more
- efficient horizontal usage without apparent increase in cognitive
- load. The net result is that more could be understood in a glance.
-
- I think that applying these principles WITHIN the restrictions of a
- given language is entirely appropriate and should be done. But I don't
- think we should allow ourselves to get so comfortable with these
- restrictions that we don't push at the envelope and get some more
- freedom from time to time.
-
- Ditto -- sorry to agree with you in a secondary step, Dick, but I know
- you'll understand. I think what's *really* important isn't the amount
- of comments (although I still feel it's too risky for a professor to
- chide people for too many comments!) but the amount of information
- that's being conveyed.
- --
- Charles R. Martin/(Charlie)/martinc@cs.unc.edu
- Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
- 3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
- "Oh God, please help me be civil in tongue, pure in thought, and able
- to resist the temptation to laugh uncontrollably. Amen." -- Rob T
-