by frigo_1337 · 9y ago · 0 comments
I hadn’t really thought about it much before. But since then, I see lying comments absolutely everywhere. Many of which I have written myself. The author is right, comments are really hard to maintain.
Nowadays I try my absolute hardest to avoid writing comments. 9 out of 10 times, it can be solved with some refactoring.
Code should strive to be as self-documenting as possible but there will always need to be some level of documentation- and good comments are part of that.
One other part of that effort should be good unit, integration, and acceptance, tests.