article thumbnail

What Is TDD?

Net Objectives

I am heartened by the surge in TDD training. To me TDD is the 2nd most important thing for devs to learn-ATDD being the 1st TDD’s not just the automation of unit testing. TDD’s formulation of tests, prior to code, drives design. High quality code is easy … Continue reading "What Is TDD?".

article thumbnail

TDD Replicating Algorithms

Net Objectives

This feels like redundancy and makes them wonder if TDD is promoting bad practices. The code would contain something like this: return (F - 32) * 5/9; The test might contain … Continue reading "TDD Replicating Algorithms". Developers often remark that the tests may contain the same algorithms that the production code does.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

TDD Yields Velocity

Net Objectives

When TDD was first suggested, there were many who were dubious about the wisdom of having developers write tests of their own code. Give someone more … Continue reading "TDD Yields Velocity". Among the objections raised was that developers will slow down if you burden them with new tasks, namely writing the tests as well as the code.

article thumbnail

TDD Yields Confidence

Net Objectives

TDD is a process that provides constant confirmation to the development team. The … Continue reading "TDD Yields Confidence". The … Continue reading "TDD Yields Confidence". Alternately, it reveals that this understanding has gaps and reveals questions that need to be answered.

TDD 40
article thumbnail

Sustainable TDD: Part 1

Net Objectives

TDD is typically part of an agile process. In TDD, a new requirement always starts out as a new, failing test or “specification.” We write the test … Continue reading "Sustainable TDD: Part 1".

article thumbnail

TDD and Test Invariance

Net Objectives

TDD often uses unit tests to drive behavior into the system. When these are automated, this can give us clues as to how to make our work in TDD more reusable. Tools like Fit, Specflow, and Cucumber are all designed to parse some non-technical artifact (such … Continue reading "TDD and Test Invariance".

article thumbnail

TDD and Encapsulation

Net Objectives

The type and nature of the tests that you write in TDD helps you to understand how strongly your system is encapsulated. The more your tests are about … Continue reading "TDD and Encapsulation". Everything the system must do, and yet might not, needs a test.