|
|
|
|
|
by sunnyprogram
5306 days ago
|
|
I disagree. If you follow test driven development, your tests become your documentation. Want to know what a method does? Look at the tests for the method where it explicitly says what the method is doing and ensures it is functioning correctly. |
|
That's the shittiest documentation in existence.
Your tests are implementation documentation, they're useful (maybe) for other maintainers, and useless for third-parties trying to actually use your code.
> Want to know what a method does? Look at the tests for the method where it explicitly says what the method is doing and ensures it is functioning correctly.
Right, look at 700 lines of edge cases testing, that's informative and helpful. Not.