Fixing the Singleton

When you ask people who know almost, but not completely nothing about patterns, about software design patterns, they probably bring up the singleton pattern. It’s extremely easy: Just make sure you have one single instance of a class. If you ask more experienced developers about the singleton, they will probably tell you its bad and [...]

Posted in: Softwaredevelopment by Jens Schauder 8 Comments , ,

The Right Amount of Up-Front Design?

Maybe its just because I’m following Simon Brown on twitter, but I saw a phrase like “just the right amount up-front design” often enough to make me think. Am I doing the right amount of up-front design? I never before thought about this question in my software projects. But I also hardly ever had the [...]

Posted in: Softwaredevelopment by Jens Schauder No Comments

The second D in TDD

Some proponents of TDD say, that TDD forces you to find a good design. Some even translate TDD to Test Driven Design. I don’t agree. Mostly. Lets start with the small part where I do agree. Since TDD forces you to write test first, it forces you to think about how you want to use [...]