Separate Request Inputs from Stored State
Scenario
A student walks up to the library desk to borrow a book. Some facts come from this new request, and some are already saved in the library system.
Try it yourself
Sort each item into Request Input or Stored State.
Choose a category for every card.
Reveal the explanation
- Book barcode scanned at the desk
Request Input · Sent right now as part of this checkout request.
- Reader’s current count of 2 borrowed books
Stored State · Already saved in the library system before this request arrived.
- Reader ID presented for checkout
Request Input · Identifies who is making this request right now.
Many bugs happen because tests give the request ("Room A at 14:00") but forget to state the starting stored state ("Room A is already occupied").
Your turn
For a room booking check, list two request items and one stored state item.
Common mistake Testing a request without recording the starting schedule state.
Check your work
Request items: room ID and time slot; Stored state: schedule availability map.
Quick check
This browser could not save your progress. Changes last until you leave the page.