Introduction: Using TDD to Create Good Code
Get an introduction to what you’ll learn in this chapter.
We'll cover the following
We’ve seen that bad code is bad news: bad for business, bad for users, and bad for developers. Test-driven development (TDD) is a core software engineering practice that helps us keep bad code out of our systems.
Chapter goals
The goal of this chapter is to learn the specifics of how TDD helps us create well-engineered, correct code, and how it helps us to keep it that way. By the end, we’ll understand the basic principles behind good code and how TDD helps us create it. It’s important for us to understand why TDD works in order to motivate us and so that we have a response to give to colleagues about why we recommend that they use it as well. In this section, we’re going to cover the following main topics: