DEV Community

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

Collapse
 
kerryconvery profile image
kerryconvery • Edited

Yes, completely agree. Documentation that is not automatically validated against the code for correctness is the worst kind imho. This is because over time it becomes outdated and paints a different picture of what the system is doing and how; and it will get outdated.

However imho the code + the tests, together, form a self validating single source of truth of documentation. The tests document what the system does and the code documents how it does it.
And they both keep each other honest.