October 1996
Intermediate to advanced
240 pages
4h 9m
English
In this chapter, I will pretend to develop a piece of software guided by the Best Practice Patterns. It will likely seem incredibly slow to you, since I won’t write more than a couple of words of code without pointing out another pattern. Not to worry, once you get used to the patterns you don’t really think of them individually. You build higher levels of structure in your mind that let you just write clean code quickly and without thinking consciously of the smaller steps, much as you can speak without consulting a grammar book.
The problem we will solve is representing multi-currency monetary values. It’s not as simple as it might seem. There are lots of unit-value computations in the world. Any time ...
Read now
Unlock full access