Another Reason you should be doing TDD

Another Reason you should be doing TDD

I've been to NDC this week. If you get the opportunity I highly recommend it. I spent the first two days of the conference in a workshop with Bob Martin, talking about SOLID principles and TDD. In the TDD talk he opened my eyes up to a different way of looking at it, and I realized something. All these years I've been doing TDD I've missed an opportunity. I've always written my tests before code (almost always) but the whole time I've been doing it I've had a pre-determined solution in mind. Given a problem, I've worked out how I…

Read More

When you Shouldn't Bother Testing

When you Shouldn't Bother Testing

TDD is the way to go, I'm absolutely sure of it. It brings more benefits than you might first think. As well as the simple fact that your code will be more reliable, it forces you to write your code in a way that is testable, which in turn will make it loosely coupled and modular. It forces you to think about what you want your code to do before you start writing it. It brings other additional benefits that I won't bother to mention, suffice to say theres no excuse for not using it in modern development. However, there…

Read More