What do you think?
Rate this book
464 pages, Paperback
First published September 1, 2004
This brings up what Feathers calls “The Legacy Code Dilemma�:
When we change code, we should have tests in place. To put tests in place, we often have to change code.
In general, programming gets easier as we narrow effects in a program. We need to know less to understand a piece of code. At the extreme, we end up with functional programming in languages such as Scheme and Haskell. Programs can actually be very easy to understand in those languages, but those languages aren’t in widespread use. Regardless, in OO languages, restricting effects can make testing much easier, and there aren’t any hurdles to doing it.