3 ms·
Depends on the comments. IMO comments together with the code should still follow the DRY principle - since code states exactly what it does, the comments should
by m_mueller 12y ago
Depends on the comments. IMO comments together with the code should still follow the DRY principle - since code states exactly what it does, the comments should only state why it does what it does - except if we're talking about comments intended to be exposed to the documentation. Otherwise comments become outdated very quickly, ensuing confusion further down the line.
- wiredfool 12y agoThe most valuable comments that I've found are documentation as to exactly why the code is doing something that looks strange or wrong, on purpose. It keeps maintainers from going in and breaking stuff later. Yes tests. But people can 'fix' tests at the same time too.