
TypeScript Patterns for Large Codebases
Advanced TypeScript patterns I use daily: discriminated unions, branded types, the builder pattern and utility types that keep large codebases safe.
Tags
26 articles · Page 2 of 3

Advanced TypeScript patterns I use daily: discriminated unions, branded types, the builder pattern and utility types that keep large codebases safe.

Replace legacy systems incrementally with route-based migration, feature flags, data synchronization and rollback strategies that keep production up.

Systematic prompt engineering for production LLM applications: structured output extraction, chain-of-thought, few-shot calibration, versioning and evals.

Apply clean architecture patterns that separate business logic from infrastructure, keeping applications testable, maintainable and open to change.

How to design custom React hooks that are genuinely reusable: composition patterns, testing strategies, state encapsulation and the anti-patterns to avoid.

A practical guide to event sourcing — when to use it, how to implement event stores, build projections, handle schema evolution, and avoid common pitfalls.

How API gateways handle routing, authentication, rate limiting and response aggregation — and how to build or choose the right one.

Practical functional programming patterns for TypeScript that improve code clarity without requiring a complete paradigm shift.

A practical guide to TypeScript generics that takes you from basic type parameters to advanced conditional types and utility patterns.

A practical reference for the regular expression patterns you'll actually use in daily development, from validation to parsing to search-and-replace.

Custom hooks, composition patterns and the rules that govern them: practical React hooks for complex state and side effects without class components.

When a downstream service is failing, continuing to send requests makes everything worse — the circuit breaker pattern stops the cascade by failing fast.