home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.software-eng:4887 comp.lang.c:18224
- Newsgroups: comp.software-eng,comp.lang.c
- Path: sparky!uunet!sarge!monster.apd.saic.com!tomj
- From: tomj@monster.apd.saic.com (Tom Johnson)
- Subject: Write Only Commentary (Was Re: C Code Layout)
- Message-ID: <Bz3zGA.DG4@monster.apd.saic.com>
- Organization: SAIC, Reston, VA
- References: <1992Dec7.113438.13054@spider.co.uk> <1992Dec7.164154.6312@b30.ingr.com> <BywqDo.F8F@monster.apd.saic.com> <1992Dec10.191917.18184@yarc.uucp>
- Distribution: comp
- Date: Fri, 11 Dec 1992 19:00:09 GMT
- Lines: 47
-
- >>>>3. What formats are most effective for comment headers of
- >>>>functions and what kind of information is appropriate for these.
- >>>
- >
- >>HISTORY
- >> Author Date Description
- >> ----- ---- -----------
- >> pam 12/07/91 initial spec
- >> moh 12/18/91 made arg1 optional
- >> xac 06/22/92 correct something TR 92w1234
- >
- >I've always wondered about this sort of thing in a source file.
- >Is this sort of information considered useful? I know several
- >programmers who refer to this as "write-only" documentation ....
- >stuff that's written down, never to be looked at again :-)
- >
- >Is there a general consensus that these sorts of comments are
- >Good Things, or a waste of time? I, personally, care more
- >about what the function _is_, rather than what it _was_.
- >
- >Inquiring minds want to know.
- >
- >--tom
- >
-
- There's been lots of discussion about this topic, via E-mail and in
- comp.lang.c, so I thought I'd post a summary of the responses.
-
- Most people agree that this sort of information is useful (and I never
- intended to imply that it wasn't; just its usefulness in the source file.
- That'll teach me to type so fast!)
-
- The opinions were pretty evenly split amongst programmers who think that
- the information should be actually in the source code, and those who think
- it belongs elsewhere. "Elsewhere" usually means some sort of automated
- trouble report tracking system.
-
- By far the most common argument for its usefulness was that automated tools
- do it automatically. Can't beat THAT logic!
-
- To anyone who E-mailed me and got no response, sorry. There were more
- than a I could get to!
-
- C you,
- -- tom
-
-
-