Copyright by Kent Beck

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 17. Money Retrospective

Let's take a look back at the money example, both the process we used and the results. We will look at:

  • What's Next?

  • Metaphor— The dramatic effect metaphor has on the structure of the design.

  • JUnit Usage— When we ran tests and how we used JUnit.

  • Code Metrics— A numerical abstract of the resulting code.

  • Process— We say red/green/refactor, but how much work goes into each step?

  • Test Quality— How do TDD tests stack up against conventional test metrics?

What's Next?

Is the code finished? No. There is that nasty duplication between Sum.plus() and Money.plus(). If we made Expression a class instead of an interface (not the usual direction, as classes more often become interfaces), we would have a natural home for the common ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required