Re:What does this code do?
by johndcook on Wednesday July 21, 2010 @12:46PM
(#1535705)
For 10 lines of code, a meaningful function name might be enough documentation. But suppose instead of a 10-line function the same code were 10 lines inside a 100-line function. Then you'd need a comment. (It would be better to break it out as its own function, but suppose it were not so easy to factor out.)
[ Parent
| on HN ]
There are no comments on this comment yet.