|
|
|
|
|
by myoffe
4960 days ago
|
|
I prefer tests over comments. Comments can't guarantee to represent what the codes does always. "Don't be lazy" is a fine argument, but it takes one time that you are under pressure to ship right away and you don't comment.
Tests, on the other hand will keep failing until they describe the updated version of the code. We should strive to make code obvious, when it's not obvious, then you should comment, or better: simplify your code. |
|