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

Eliminate a whole class of runtime bugs by teaching TypeScript the difference between a UserId and an OrderId — even when both are strings underneath.

A balanced look at event sourcing: where it genuinely shines, the pitfalls that derail implementations, and practical event store and projection patterns.