CompuServe Messages

#Value of Comments

    14-May-90 16:02:28
Sb: #104117-#Value of Comments
Fm: Mike Spille/Manx 71545,1466
To: Don Curtis/SYSOP 76703,4321
Yes, but you can run into problems here. What if the programmer actually wanted to calculate the area of an ellipse, and then a week later went back on a 'commenting pass', looked briefly at the code, and said 'oh, I guess this is the area of a circle', and commented it as such. Well, then you're gonna waste alot of time looking for the 'error ' in the code, when the only error was in the comment. The fact is, in most of the code I've seen, there were many more commenting errors than errors in the source code, because when people update code they rarely update comments. -Mike