3 ms·
I think a comment is appropriate if the problem cannot be factored out. But in my experience such things can be factored out most of the time, hence the argume
by clarry 7y ago
I think a comment is appropriate if the problem cannot be factored out. But in my experience such things can be factored out most of the time, hence the argument that most code should be boring and immediately obvious.
- Firadeoclus 7y agoFactoring out a comment into code sometimes loses information. I would argue that database_year_offset is not as informative as the original comment. Free form text can say things better than identifier names.
- nerdponx 7y agoMost code, sure. But it's not an ideal to be striven for, or a metric to be used when evaluating code.