home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!psinntp!wrldlnk!usenet
- From: "Lih Yen Hsieh" <wk01673@worldlink.com>
- Subject: Re: C Code Layout
- Message-ID: <2933199653.8.wk01673@worldlink.com>
- Sender: usenet@worldlink.com
- Nntp-Posting-Host: 127.0.0.1
- Organization: [ Myself ]
- Date: Fri, 11 Dec 1992 22:44:33 GMT
- X-Mailer: WORLDLink (3.11)
- Lines: 39
-
- Tom Johnson <tomj@monster.apd.saic.com> writes:
- >
- >mueller@b30news.b30.ingr.com ( Phil Mueller ) writes:
- [ ommisions ]
- >
- >>HISTORY
- >> Author Date Description
- >> ----- ---- -----------
- [ omissions ]
- >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_.
-
- I will be amazed if "software engineers" were cited in the counter point.
- Inclusion of historical information about the module certainly helps track
- the evolution of the piece of code of interest. Points of relevance:
-
- 1. When you need to deal with FDA audits.
- 2. When you have to inherit code from previous contributors.
- 3. WHen you work on a project that contains at least dozens of source files.
- 4. When you are working on complex modules.
- etc.
-
- Practically, if you are in a production environment, this is not only
- a good thing to have, but also indispensible and should be enforced.
- (I was able to get by without documenting code history when I was
- programing for my master's thesis work. But now at work I enforce it.)
-
- If you are familiar with Unix tools, such as sed, awk, and the like, you
- can craft non-trivial tools together with revision control and the make
- program to somewhat mechanize this 'chore'.
-
- Lih-Yen Hsieh
-
-