Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!netsys!lamc!well!shf From: shf@well.UUCP (Stuart H. Ferguson) Newsgroups: comp.software-eng Subject: Re: comments on comments Keywords: comments Message-ID: <10782@well.UUCP> Date: 20 Feb 89 10:14:23 GMT References: <1813@goofy.megatest.UUCP> <20233@agate.BERKELEY.EDU> <4173bd76.183dc@apollo.COM> <9606@ihlpb.ATT.COM> Reply-To: shf@well.UUCP (Stuart H. Ferguson) Organization: The Blue Planet Lines: 109 +--- From: nevin1@ihlpb.ATT.COM (Liber) | I do agree with you on the problem (poor documentation), but | I do not think that more comments is the answer. Perhaps it's quality that matters, not quantity. | [...] only the code really matters to those buying your software. That may have been true in "the old days," but people expect a lot more than mere functionality from modern software. People are buying not just the program, but "support," which means documentation, bug fixes and updates. All of this is easier with well commented code. | It is human nature to take the path of least resistance; comments go | against this path. I used to think this too. I started, in "the old days," writing machine code directly into core memory. There was no such thing as source. Comments were a list of addresses and what they contained kept in a pile of ragged sheets of loose yellow paper. A "patch" was a jump to a free section of memory to execute new code which then jumped back. The heart of the matter -- what the customer paid for -- was the raw code, the stream of machine instructions that WERE the program. The "comments" were auxiliary, for my use only. (We still have a piece code like that, and the only person who can do anything useful with it is the original programmer. I fear he may be wedded to that program for the rest of his life...) As time passed and I matured as a programmer, however, my opinion of the role of "code" and "comments" reversed. I think I would now be happier with a language that was all comments, with tokens to delimit code, rather than the other way around. Code is only understandable in a context. For the 'C' language, for example, K & R, or some other 'C' reference work, provides the background for understanding a usage of the notation. The fragment, for (i=0; i