Re:Writing docs well: why should a software engineer care?
by rr888 on Friday November 25, 2022 @08:21AM
(#33742109)
TDD in theory sounds great. What I've seen is thousands and thousands of tests, inconsistently written by dozens of different developers over the years. Testing silly little trivial things that makes the CI pipeline 10+ minutes. A least if you have lots of obsolete difficult to read docs you can easily ignore them, tests however are particularly toxic as it makes refactoring and cleanup very difficult.
[ Parent
| on HN ]
Re:Writing docs well: why should a software engineer care?
by pif on Friday November 25, 2022 @09:31AM
(#33742673)
> tests however are particularly toxic as it makes refactoring and cleanup very difficult.
Properly written tests check the interface contract, and thus are very friendly watchdog that will warn you as soon as you got out the right path.
Tests that check the implementation details, instead, are hardly ever justifiable.