Re:Should I Comment My Code? The Case Against Code Comments
by Walkman on Thursday October 06, 2016 @12:41PM
(#12653875)
First three are "why comments" so they are good. The fourth is not a comment. It should be clear from the code what it does.
"We have to trim the last character because this third party library we're calling has a bug that doesn't handle null terminators"?
Or "we have to continue to support the old-style url for backwards compatibility reasons"
or "we're dropping down to assembly here because it's 100x as fast as the naive solution"
or even "This function ensures the returned string ends in a line return."