Category: BDD

The 1 law your tests are telling you to obey

TDD is not only about the correctness of the code. Equally, or even more important is how it drives a better code design. There is a tight feedback loop, a specific kind of symmetry between the production code and the tests: well designed code makes writing tests easier, therefore the tests push you in the direction of a better design.

This synergy is especially visible in case of the Law of Demeter principle.

Continue reading “The 1 law your tests are telling you to obey”

Advertisements