Unit tests are always in sync with the code, making them a powerful tool for up-to-date documentation.
Nice insight! I could apply literate programming to test code for better documentation.
When I can't figure out how to use some complicated (yet undocumented) class from another team, I look at their tests. +1
Nice insight! I could apply literate programming to test code for better documentation.
When I can't figure out how to use some complicated (yet undocumented) class from another team, I look at their tests. +1