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.

Two ways to create a regular expression in JavaScript

There are two ways to create a regular expression in JavaScript. You can either create a regular expression literal OR instantiate the RegExp() constructor function. Which one should you use? It depends.

Resources for regular expressions

Regular expressions are powerful. But they’re fucking hard to write, and even harder to read. So I thought I’d share my favourite resources. I hope you find them helpful! ❤️

Keep it simple, stupid (KISS)!

Everyone knows the DRY acronym: “don’t repeat yourself”. But another one I try to keep in mind is KISS: “keep it simple, stupid!”