News for hackers. Stuff that matters.
Re:How important is it to reduce the number of lines in code? by JamesLeonis on Sunday April 07, 2013 @03:09AM (#5506382)
I try to avoid having to write implementation comments. If I find I need comments, then it's a warning that I may be too clever by half. I prefer a description of what the function is supposed to do rather than how it accomplishes it's goal.

Even so, there are some times when I need to write some mentally dense code to accomplish several competing goals. It is then where I explain what's going on and why the code was built that way.

There are no comments on this comment yet.