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,620 views
#express #middleware #error-handling #nodejs
Continue Reading →
JavaScript Promises: From Beginner to Advanced
JavaScript

JavaScript Promises: From Beginner to Advanced

I used to hate Promises. Callbacks felt intuitive and Promises felt like ceremony. Then I actually learned how they work -- the constructor, chaining, combinators, the microtask queue -- and I stopped fighting them. Here's everything I figured out the hard way.

12 min read 3,928 views
#promises #async #javascript #error-handling
Continue Reading →
Understanding the Node.js Event Loop: A Deep Dive
Node.js

Understanding the Node.js Event Loop: A Deep Dive

I've been asked about the event loop more than any other Node.js topic. Here's how I finally made sense of it -- why Node can juggle thousands of connections on one thread, and the mistakes I kept making that blocked it.

8 min read 7,402 views
#event-loop #async #nodejs #performance
Continue Reading →