4 ms·
> since when is a lack of comments in the body of a method a good thing? I think that's the rationale: you are supposed to explain what you do, not how you do
by zakk 9y ago
> since when is a lack of comments in the body of a method a good thing?
I think that's the rationale: you are supposed to explain what you do, not how you do it. The function is short enough that a global comment is enough.
I agree with you, that a couple of comments in the function body wouldn't have hurt.
- zbuf 9y agoTo be fair to the article, it 'remarks' on the lack of comments there but doesn't specifically call it out as a best practice.