Re:Linus Torvalds: 'I Do No Coding Any More'
by mcv on Sunday July 05, 2020 @05:52PM
(#23742405)
Commit messages and code comments serve different purposes. The commit message should be about what you changed, so they help you find the interesting commit from a list of commit messages, whereas comments in the code should be about why the code is the way it is. Is it because of a bug in a library? Is it arbitrary? A quick fix that still has some debt? Did someone waste a lot of time on this?
Commit messages are about the change, whereas comments are about the state of the code.
Commit messages are about the change, whereas comments are about the state of the code.