4 ms·
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.
by teyc 7y ago
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.
- rorychatt 7y agoAn 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.