home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.usage.english
- Path: sparky!uunet!munnari.oz.au!yarrina.connect.com.au!warrane.connect.com.au!g2syd!roberts
- From: roberts@g2syd.genasys.com.au (Robert Swan)
- Subject: Comments in source code
- Message-ID: <1992Dec29.060209.17732@g2syd.genasys.com.au>
- Organization: Genasys II, Sydney, Australia
- Date: Tue, 29 Dec 1992 06:02:09 GMT
- Lines: 29
-
- I have noticed two principal commenting styles in code (C and FORTRAN)
- that passes across my screen (when there are any comments to observe).
-
- The first is to be found in older code (yep, the FORTRAN) and is
- very impersonal. It simply states in terse, not quite English, the
- intent of some ensuing piece of gibberish `PROMPT FOR FILENAME', or
- `CHECK RIGHT TYPE'.
-
- However, in the newer code, comments tend to be complete sentences and
- (here's the part that interests me) speak in terms of the 1st person
- plural ... `We need to get the filename', `We can't proceed unless it's
- the right type'. Reading the source code has taken on an us and them
- aspect. I used to catch myself writing comments like this, and change
- it back to a more impersonal form. Nowadays I don't bother, and quite
- like the idiom.
-
- Who are `we'. Me and my program? Me and the other programmers?
- The royal we (since I am creator of the universe in my program,
- I suppose I could put on royal airs)?
-
- Has anyone else noticed anything similar? Or am I just losing my
- marbles?
-
- Have fun,
-
- Robert.
- --
- I used to be indecisive, | Robert Swan, roberts@g2syd.genasys.com.au
- but now I'm not so sure. | Genasys II Pty. Ltd., North Sydney.
-