Finally I start to embrace test-driven-development.
Whenether I fix a non-trivial defect, I first write a unit test to catch that error, and then fix the bug.
Even now, for example, I have to create a new command which creates a new contract for each student. Instead of writing immediatelly whole working code, I make a sketch of what my working code might look like, then I write unit test to test that my sketch code does not work.
Finally, (in a few minutes or hours) i implement the feature and the tests pass. Then I run all my tests (64 right now), and commit the code to svn.
That's my life.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment