161
When I'm asked to write documentation
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
You're definitely not the only one.
In my opinion the important information we should record in comments is WHY, because the code can only explain HOW, maybe WHEN, but never WHY. If we don't know WHY, any refactoring done in the future could break the logic by ignoring assumptions made by the authors.
// because I said so.