Money, time and IDs in code: money types, injected clocks and ID generators
A price in floating point, the system clock read inside a class and an ID made where no test can see it are small choices that cost real marks. This move gives each one a small type: a Money value object, and a Clock and an IdGenerator passed in. How IDs work across many machines is on Unique ID generation. Interviewers listen for how you split an amount that won't divide, and for when a plain integer is enough.
A dry cleaner's counter
Think of the counter at a dry cleaner's. The till holds only whole coins, so three friends sharing a $100 bill pay $33.34, $33.33 and $33.33, and no cent goes missing. The clerk never looks at her watch. She uses a date stamp that the owner sets each morning, and she tears each ticket off a numbered roll that the owner put there. On a training day, the owner sets the stamp to a chosen date and starts a roll at 1, so a trainee's work can be checked line by line.
In code, the till's rule is Money, the date stamp is a Clock, and the roll is an IdGenerator. The clerk is PlanDesk, and the owner is Main. The training day is a test with a FixedClock and SequentialIds.