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.

My approach to event delegation

Event delegation is an easier and more performant way to add event listeners in JavaScript. You attach the listener to a common ancestor and allow the event to “bubble” up through the DOM tree.

Why use JSX when you can use template literals?

Yesterday, I wrote about my favourite ES6 features. Template literals take the top spot. I think they make JSX, the JavaScript syntax extension React uses, largely pointless.

My favourite ES6 features

Two days ago, I wrote a post called Old does not mean dead. The point of it is that “new does not mean best”. That we should embrace old, boring methods wherever possible. Sometimes, though, the new features are better. These are my favourite features of ES6.