Part 1 of 6 · 1 min read
Why this page comes sixth in Level 6
In this module you will
- Apply the five-step method to a system with many kinds of records.
- Separate a title from its physical copies, and a member from a loan.
- Enforce loan limits, renewals, fines and a fair hold queue.
- Put the fine rule behind a strategy and the date behind a clock.
- Decide which refusals are checked exceptions and which are caller errors.
The library is a data-heavy design. It has little algorithm, and it tests whether the model is right: what is an entity, what is a value, and where do the rules sit. Getting the difference between a book and a copy wrong makes everything after it awkward. This page uses the five steps of Level 0, module 4, and the value and entity ideas of Level 5, module 2. No book was supplied for this track, so the content is common practice, not from the books. The Java code was compiled and run before it was written here. Numbers marked "made up" only show the idea.