DEV Community

Discussion on: A Better Way To Code: Documentation Driven Development

Collapse
 
alvesvalentin profile image
Alvès Valentin

Thank you !
Comments in code are just noise and they're practically never up to date. Unit tests are there to specifiy a behavior (business rules) you can easily use the tests as documentation. The truth (what the product actually does) is in the code not in the documentation, tests are there to be sure behavior didn't changed and act as documentation, i never trust documentation i only trust what i see in the code