I'd be willing to bet that any randomly selected page of code
out of this listing has comments at the same detail as the
listed page. Those guys were absolutely paranoid about safety!
Don Hyde wrote:
{Quote hidden}>
> I agree that it's an exemplary piece of self-documentation. Note that the
> museum-piece code sample has a page number in the thousands. Certainly the
> people who picked it chose one with enough comments that a non-programmer
> would find something to read.
>
> How much do you want to bet that the other thousands of pages are as well
> documented? Hint: I'll take your bet without ever seeing the rest of the
> program.
>
> Now, the space program code was better documented than most code. There
> were people who actually got paid to read the code looking for bugs, and
> they expected at least a few clues. I know because as a NASA co-op at the
> time I was one of those people.
>
> I worked with an ex-IBM assembly-language programmer at about that time. At
> the time, IBM had a rule something like "2 comments for every 3 lines of
> code", and inspectors to enforce the rule. He used to write poetry down the
> comment side of the listing, and it always got approved even though he was
> writing stuff that had nothing to do with the program.
>
> I'm sorry to muss your rose-tinted nostalgia glasses, but the 99%
> undocumented pile of crap rule is not new. It's just that nobody chose the
> crap to put in a museum display.
>
> You write code differently if you think another human might actually read
> it. It's a fact of life that the vast majority of source code is never read
> by any human other than the original author. Based on my experience, I
> suspect that the vast majority of the good reputation of open-source code
> stems from the fact that the authors expect someone else to actually read
> their code.
>
> I don't know about you, but I don't think I have ever sat back and read
> anyone's source code -- either my own or someone else's without spotting a
> potential bug or at least a better way of doing something.
>
> > {Original Message removed}