Tag Archives: factory

Top-Down Test-Driven Development

In Test-Driven Development (TDD), I have a tendency to dive right in at the level of some class that I am sure I’m gonna need for this cool new feature that I’m working on. This has bitten me a few … Continue reading

Posted in Code, Design, process, test | Tagged , , , , , , | Leave a comment

Using factory classes in Ant tasks

So you have this nice factory class that prevents your client code from knowing the implementation class of the instances it needs to create and that lets it program to an API only. Of course, at some point somebody needs … Continue reading

Posted in Code, Debug | Tagged , | Leave a comment

Supporting multiple versions of a data model

As an application evolves, its data model often does too. If you control both, this usually isn’t a problem. However, sometimes your power to change the data model is restricted. This happens, for instance, when the data model is published, … Continue reading

Posted in Code, Design | Tagged , , , , | Leave a comment