Test Driven Development: By Example – By Kent Beck
I have had this book laying in my stack of books that I want to read for quite some time, so when I finally got around to reading it, I was really excited.
However, after reading it I felt a little bit disappointed, because I somehow had expected more.
If you wanted to, then you could probably sum up the content of book to a few lines (which some critiques seems to do).
- Add a test.
- Run test and see it fail.
- Make some changes.
- Run again and see it succeed.
- Refactor and start over.
The book doesn’t build on real world examples but instead shows how to get your mindset tuned in to start using TDD. It would have been nice with a set of best practices on naming conventions, how to write tests effectively, and where to put your test in your project. Every time I look at a new project, I often see it written in a completely different style than the last one.
If you are looking for a good and simple introduction to test-driven development, then this is the book. If you want something that explores the subject a little bit deeper, then should probably try to find another book.
However, I would recommend every developer to explorer the benefits that come with TDD, like higher quality in your code.