Modeling a Fabric Stash with Datomic
summary
A small web app models a messy fabric stash in Datomic and proves that an attribute-based schema handles sparse, irregular data better than columns: fibers, structures, colors, lengths and weights are stored as single- or multi-valued attributes, vocabularies grow with a transaction, and new fabric types appear without migration. The app supports queries like “lightweight and ≥5 yd,” models cuts vs fabrics for identity, records knowledge levels, and follows the rule don’t store what you can derive.
AI-written summary · about
chapters (17)
- 0:00Introduction and fabric stash
- 3:14Problems with fabric stash organization
- 4:16Demo of fabric inventory tool
- 5:41Why Datomic for fabric modeling
- 6:23Starting with data questions
- 8:14Deep dive into fabric color
- 13:34Fabric attributes and candy demo
- 18:25First fabric schema iteration
- 23:41Expanding fabric type vocabulary
- 25:03Deriving names from attributes
- 25:46Querying fabric stash
- 26:53Next steps and project evolution
- 27:57Revisiting fabric entities as cuts
- 29:22Tracking fabric usage and uniqueness
- 30:05Modeling different user knowledge
- 31:11Querying for missing fabric data
- 32:37Key takeaways and wrap-up
