TDD by example

Last updated Dec 20, 2024 Published Jan 26, 2015

The content here is under the Attribution 4.0 International (CC BY 4.0) license

Cover of the book "TDD By Example"

Are you not using TDD?

TDD by example is a perfect book if you are looking for the first step into the TDD world. I would say the book was divided into two main parts, the first one is how the TDD works and how to do your tests using a simple abstraction, by the way, the problem presented was about currency. The second part focuses on creating your own TDD framework.

And here goes a tip for Python developers, the second part of the book where Kent Beck gives us an explanation of what is suit and how it works was entirely written in Python. But the book is not written just using Python is there a few sections that were written in Java as well.

Chapter 35 - Who is TDD intended for?

Every programming practice encodes a value system, explicitly or implicitly. TDD is no different. If you’re happy slamming some code together that more or less works and never looking at the result again, TDD is not for you. TDD rests on a charmingly naïve geekoid assumption that if you write better code, you’ll be more successful. TDD helps you pay attention to the right issues at the right time so you can make your designs cleaner, you can refine your designs as you learn.

Kent Beck, Test-Driven Development By Example

Changelog

  • May 18, 2024 - grammar fixes