home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.usage.english
- Path: sparky!uunet!spool.mu.edu!umn.edu!charlie
- From: charlie@umnstat.stat.umn.edu (Charles Geyer)
- Subject: Re: Comments in source code
- Message-ID: <1992Dec29.191042.13088@news2.cis.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: isles.stat.umn.edu
- Organization: School of Statistics, University of Minnesota
- References: <1992Dec29.060209.17732@g2syd.genasys.com.au>
- Date: Tue, 29 Dec 1992 19:10:42 GMT
- Lines: 47
-
- In article <1992Dec29.060209.17732@g2syd.genasys.com.au>
- roberts@g2syd.genasys.com.au (Robert Swan) writes:
-
- >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)?
-
- I venture a guess that it's the influence of hackish. From the Jargon File
-
- Semantically, one rich source of jargon constructions is the hackish
- tendency to anthropomorphize hardware and software. This isn't done in
- a na"ive way; hackers don't personalize their stuff in the sense of
- feeling empathy with it, nor do they mystically believe that the things
- they work on every day are `alive'. What *is* common is to hear
- hardware or software talked about as though it has homunculi talking to
- each other inside it, with intentions and desires. Thus, one hears "The
- protocol handler got confused", or that programs "are trying" to do
- things, or one may say of a routine that "its goal in life is to X".
- One even hears explanations like "... and its poor little brain
- couldn't understand X, and it died." Sometimes modelling things this
- way actually seems to make them easier to understand, perhaps because
- it's instinctively natural to think of anything with a really complex
- behavioral repertoire as `like a person' rather than `like a thing'.
-
- This suggests the "we" is all those little homunculi.
-
- --
- Charles Geyer
- School of Statistics
- University of Minnesota
- charlie@umnstat.stat.umn.edu
-