kusal π¨βπ»
Home
βΊ
Blog
Notes on engineering, architecture, and shipping.
Good architecture isn't about reuse β it's about how cheaply you can throw a piece away when requirements change.
Collapsing publications and content records into one model: typed collections plus static and dynamic pages.
Most useEffect bugs come from one thing: treating it like a lifecycle method instead of a synchronization tool.
A working style that keeps large changes safe: verify, confirm, commit β one staged checkpoint at a time.
A page is a slice zone. Static pages have a fixed slug; dynamic pages bind a collection type to a URL prefix.
Generics are type-level functions. Once you see them that way, the angle brackets stop being scary.
A closure is just a function that remembers the variables around it β here's the mental model that makes them click.