10 April 2009

Vicious cycle

Argh... can't start refactoring until I have unit tests...

Argh... can't unit test code until I've done some refactoring...

Don't let this happen to you. Write testable code.

By the way, I just discovered the Model-View-Presenter architectural pattern. It is similar to MVC, but totally decouples the View from the Model. This makes unit testing the UI much easier.

No comments:

Post a Comment