Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
teyc
· 7y ago · 0 comments
Comments are usually less prone to logic bugs. When fixing issues, if the code behaves opposite to what the comment says, it can be a very helpful clue.
Comments
[–]
rorychatt
7y ago
An argument can be made that this is what Test Driven Development is here to solve. State intent in the test, not the comment.
That said, I agree it can be a helpful contextual clue.