Chapter 21. Test-Driven Development and Refactoring


Logic is the art of going wrong with confidence.

 --Joseph Wood Krutch


Extreme Programming (XP) promoted an important testing practice: writing the tests first. It also promoted continuously refactoring code to improve its quality—less duplication, increased clarity, and so forth. Modern tools support both practices, and many OO developers swear by their value.


Test-Driven Development

An excellent practice promoted by the iterative and agile XP method [Beck00], and applicable to the UP (as ...

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.