Test-Driven Development by bxample by Kent Beck is one of the most famous book on software construction and for a reason.
The book is structured in three parts.
- Part 1 – The Money Example. An example of typical model code written with TDD.
- Part 2 – The xUnit Example. A more complex example of writing code with TDD implementing a testing framwork. It includes exceptions and reflection.
- Part 3 – Patterns for TDD. Includes patterns on how to write test, what tests to write and a selection of best practices.
The style is unique and this is the most intruiguing aspect of the book. The authors speaks to you in a very informal way and you can feel the fact that he has been a developer in the real world and he’s familiar with the good and bad things that we, as developers, do every day. It’s like he knows you personally and teaches you a way to be a better developer. He explains his reasoning and he grabs your hands and guides you into the test driven development step-by-step.
I find this book enlightening and I consider it a must read for developers as much as Steve McConnel’s Code Complete 2