-
Book Overview & Buying
-
Table Of Contents
Supercharged Coding with GenAI
By :
Test-driven development (TDD) is one component of the Extreme Programming (XP) agile software methodology proposed by Kent Beck in the 1990s. Two of his books can be found in the Further reading section. The main concept of TDD is that the unit tests are written first and subsequently fail since there is no code to support them. The software engineer then writes the code until the tests pass. It is widely accepted that this practice improves code design and enhances testability. Empirical studies such as that by Mäkinen & Jürgen Münch (https://link.springer.com/chapter/10.1007/978-3-319-03602-1_10) generally support the value of TDD. The approach also focuses the software engineer on passing tests rather than adding other features.
Whether to write tests first or last often becomes a religious debate with devout followers on either side. We will not attempt to resolve the issue here. If we believe that GenAI always writes perfect code...