April 2007 - Posts
Summary Motley: Every time I make a change in refactoring I either cause compile problems or break functionality. Refactoring is slow and not worth the effort. Maven: Use tools to refactor and leverage unit tests to improve your confidence that your refactoring
Read More...
Summary Motley: Refactoring takes too much time - I have to ship you know! Maven: Refactoring leads to much more maintainable code, and if you have tests in place, the return on investment far outweighs the cost. ______________________________ [Context:
Read More...
Summary Motley: Tests need to validate code that has already been written - not the other way around. Maven: Writing tests before you code allows the tests to drive your code while providing more sound requirements validation. ______________________________
Read More...
Summary Motley: You can't possibly write tests before code - there's nothing to test. Maven: Writing tests for a method before coding it has all kinds of design advantages. ______________________________ [Context: Motley has been writing unit tests for
Read More...
Summary Motley: Unit tests take too long to execute. I'm not going to bother. Maven: Unit tests need to run quickly - you need to execute them frequently. Mock objects can help. ______________________________ [Context: Motley has been writing unit tests
Read More...