13 ms·
Code may explain what your code is doing, not necessarily why it is doing what it does in the way it does. Comments may be a code smell when it is necessary to
by jabbrwcky 12y ago
Code may explain what your code is doing, not necessarily why it is doing what it does in the way it does.
Comments may be a code smell when it is necessary to explain what your code is doing.
Anywhere where you have some freedom to solve a problem one way or the other it may clarify why the implemented approach was chosen.