4 ms·
We just have automatic tests that use the thing in every possible way. We have them because that's how we've developed and debugged the function. Best documenta
by de_watcher 6y ago
We just have automatic tests that use the thing in every possible way. We have them because that's how we've developed and debugged the function. Best documentation ever.
- tcbasche 6y agoA comprehensive unit test suite is the best documentation your code can have :)
- qppo 6y agoOnly if your testing framework allows those tests to be cleanly expressed and readable. Most of the tests I look at are inscrutable and the majority are for handling corner cases, with maybe a handful for common cases. The best documentation your code can have is the docs written by paid applications engineers