TDD by Beck – CH 12 code on GitHub

The code for Chapter 12 of TDD by Beck is now on GitHub.

CH 12 - Addition, Finally

In this chapter, we take a big test - which is addition cross-currencies, and reduce it to a simpler case of addition in a single currency.

Wiht that - we have a metaphor - Expressions - which are currency independent - think of them like a wallet.  Operations result in expressions - and if we think of the multiple ways that a currency combination in a wallet can have the same value - we introduce a "bank" as a way of converting to a single currency value at the end.

This means - Expression will operation on Money.
Then create a bank.
Have the bank reduce the value to USD (for example)
Advertisements
This entry was posted in TDD, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s