Re:Does anyone use comments any more?
by robomartin on Friday July 06, 2012 @04:34AM
(#4206914)
Of course, variable names need to be really descriptive. And, no, they don't each need a comment. Here's an example, in a recent app I had to slice an image based on a given number of rows and columns. The variables were named:
The actual code, with comment, went something like this:
A year from now I won't need to read far into the code to understand what they do.
[ Parent
| on HN ]
There are no comments on this comment yet.