3 ms·
I see a lot of this at work, sigh. The better a variable / function is named (and the better its scope or purpose is limited to one thing), the less it needs c
by clarry 7y ago
I see a lot of this at work, sigh.
The better a variable / function is named (and the better its scope or purpose is limited to one thing), the less it needs comments. So there are a lot of self explanatory variables or functions with doxygen comments that state exactly the same thing the name already does, without adding anything besides noise. And then there are some poorly named things where the exact same thing happens: comment re-states what the bad identifier states. Sigh. Genuinely useful comments are rather rare.