Latest Posts

I write about front-end web development. I'm inspired by Nathan Barry's motto, teach everything you know. I also take a lot of inspiration from my friend and mentor, Chris Ferdinandi.

The only stupid question...

We just kicked off a new session of the Vanilla JS Academy on . The level of engagement is unprecedented! The Slack community is so active. I’m so happy to see that vanilla JS is really starting to gain some traction ❤️

CSS Grid: auto-fill and auto-fit

I recently purchased Grid Critters by Dave Geddes. It’s fantastic, but I found myself revisiting the difference between auto-fill and auto-fit. They’re keywords you can pass into the repeat() function.

How I use event delegation with Reef

In my last post, I wrote about my preferred approach for event delegation. I like to attach my event listeners as close as possible to the target elements. Here’s how I do that in Reef, a small library my friend Chris Ferdinandi created. It lets you create reactive, state-based components with much less overhead than the big frameworks like React.