functional core, imperative shell
order process part 2: refining the domain model and building an anti-corruption layer
Last time, we created a testable implementation of a simple function, that takes an order, computes some values like net / gross totals and tax, and returns the result so we can print it. Here is part 1 if you're interested. As a refresher, here is what that program