Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Composition

Part 2 taught the atoms — concepts, properties, rules, computations, mutations, the type system. This part teaches what to do with them.

Two threads run through this part. The first is composition in the obvious sense: putting the atoms together to model real lifecycles, real rules, real interactions. The second is verification: pinning the meaning of the model down with tests and diagrams that double as living documentation.

By the end of Part 3 the lease tutorial has a state machine for Lease, a test suite that exercises it, and a set of diagrams you can hand to a non-technical stakeholder.