Showing posts with label TDD. Show all posts
Showing posts with label TDD. Show all posts

Monday, 21 September 2015

TDD and Emergent Design (or The Blind Architect).

I'd like to take a brief break from my discussions around Inversion of Control and the various design patterns we employ whilst applying the concept. Instead I would like to have you ponder with me the beauty of Test Driven Development (TDD).

The pun behind the title of this blog entry might not become apparent until the penultimate paragraph, but I would encourage you to stay with me (so to speak) throughout the essay and hopefully you will draw the same conclusions as I do with respect to why and how TDD results in beautiful, organic code.

Sometimes we know instinctively just how our implementation will turn out (for example if there is a well known pattern which we can apply) but yet still we must be unyielding in our approach.