by akeefer · 17y ago · 0 comments
Tests are crucial to maintaining quality over the long term and to preserving your ability to refactor and change the code. How you arrive at those tests (test-first, test-last, test-randomly) is much more a matter of personal taste. Part of maturing as a programmer is learning what works best for you.
The case where I consistently test before is a method doing database queries. I find it much less tedious to write and test pure SQL before any java.