Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
My favourite 'Comment the d*mn code' experience happened a few years ago - a frustrated workmate swore loudly and vociferously complained that so-and-so never commented his code and that he was fed up with trying to figure out what it was meant to do! I walked over to look at the code over his shoulder, just as so-and-so sauntered across and said… 'Hit Page Down' There were about three screens of comment explaining what was going on, why, and what was going to come back - pretty clear and detailed. The angry chap harrumphed, and proceeded to read (slowly…) through the code, highlighting each line as he read down, to make it easier to see (he was a long tooth contractor…). 'Well - ok! Sorry' he said when he reached the bottom. He then pressed the Enter key, replacing all those lovely comments with a blank line, and blithely proceeded to make his code modifications… We had finally figured out the answer to that song - 'Where have all the Comments Gone?' In reply to Re: Documenting Methods/Subs
by jaa
|
|