
Engineering
TypeScript Branded Types: Compile-Time Domain Modeling
Eliminate a whole class of runtime bugs by teaching TypeScript's type system the difference between a UserId and an OrderId — even when both are strings under the hood.
·5 min read
Tags
2 articles

Eliminate a whole class of runtime bugs by teaching TypeScript's type system the difference between a UserId and an OrderId — even when both are strings under the hood.

A balanced examination of event sourcing as an architectural pattern covering real-world use cases where it shines, common pitfalls that derail implementations, and practical patterns for event stores and projections.