Immutable Relational Data
summary
Argues that modeling related entities with a single immutable store avoids sync bugs: replace nested student records with a central students dictionary keyed by IDs and course lists of student IDs (prefer sets), then compute course members with Dict.filter and Dict.values and combine results with Dict.intersect and Dict.size. Shows a field‑trip example where JS object references hid consistency issues but JSON/records duplicate data and can diverge. Recommends never duplicate state unless a proven perf hotspot that needs a cache.
AI-written summary · about
