404 Model not found: Livecoding
summary
A TypeScript livecoding refactor turns a prototype price service for a Belgian recycling center into small domain objects: the code extracts PriceCalculation rule objects and WeightExemption rule objects, adds a DeliveryCalculation class, a NoExemption implementation and simple in-file rule lists, and keeps the test suite green. The result makes per-city, per-fraction pricing and 100kg exemptions explicit and configurable; remaining work: move rules to repositories and introduce proper value objects and calendar-year activation.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:00Livecoding
- 2:00Questions Remarks
- 2:40Problem Description
- 5:05Events
- 5:50System Overview
- 7:30Rules
- 12:00Calendar year
- 12:30Test
- 13:20Domain layer
- 14:40Code review
- 16:40Price calculation
- 18:50Fraction calculation
- 25:25Configurable rules
- 38:55Technical discussion
- 39:55Repositories
- 40:55New class
- 43:55Repository








