Express.js Middleware Patterns You Should Know
Express.js

Express.js Middleware Patterns You Should Know

Middleware is how Express works. Not just a feature of it -- it is the whole thing. This is the talk I give to every new hire: the five middleware types, execution order, why next() trips everyone up, async error handling, and the patterns we actually use in production.

11 min read 3,622 views
#express #middleware #error-handling #nodejs
Continue Reading →
JavaScript Design Patterns for Clean Code
JavaScript

JavaScript Design Patterns for Clean Code

Design patterns get a bad rap, but a handful of them genuinely earn their keep in JavaScript. This opinionated walkthrough covers seven patterns — module, observer, singleton, factory, strategy, decorator, and facade — with honest takes on which ones I actually reach for in real code and which ones mostly live in textbooks.

12 min read 3,285 views
#javascript #design-patterns #clean-code #software-architecture
Continue Reading →
TypeScript Decorators: A Practical Guide
TypeScript

TypeScript Decorators: A Practical Guide

I put off learning TypeScript decorators for a long time. They looked like unnecessary magic. Then I actually used them on a real project -- and changed my mind. This guide walks through every type of decorator with real-world examples, from Express route handlers to validation patterns.

11 min read 2,914 views
#typescript #decorators #design-patterns #nestjs
Continue Reading →
TypeScript Enums vs Union Types: Which Should You Use?
TypeScript

TypeScript Enums vs Union Types: Which Should You Use?

I spent way too long going back and forth on enums versus union types. Here's where I landed after trying both in real projects, covering numeric enums, string enums, const enums, as const patterns, and the actual runtime differences that matter when you're shipping code.

10 min read 2,899 views
#typescript #enums #union-types #type-safety
Continue Reading →
Redis Caching Strategies for Node.js Applications
Database

Redis Caching Strategies for Node.js Applications

I burned a lot of hours on cache invalidation before I figured out which Redis patterns actually hold up under load. Here's what I settled on after running caching in production across several Node.js services.

12 min read 1,951 views
#redis #caching #ioredis #performance
Continue Reading →