3 ms·
Except by reading that comment, you can tell if the function was implemented correctly or not.
by Retra 9y ago
Except by reading that comment, you can tell if the function was implemented correctly or not.
- ben-schaaf 9y agoUntil your requirements change and someone forgets to update the comment. Now you don't know whether you have a bug and/or bad documentation.
- Retra 9y agoThat should be an easy checkbox for any code reviews you do. If you changed the function, why didn't you change the comment?
- adamors 9y agoThat's what unit tests are for.