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.

Security and performance issues with target="_blank" on links

Setting the value of a link’s target attribute to _blank will make the link open in a new tab or window. Ideally, you shouldn’t be doing this (and here’s why). But if you are, there are a couple of security and performance issues to be aware of.

Named callback functions in JavaScript

As explained in the MDN Web Docs, a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action. I’d like to share a nice little trick you can do when passing in a named function.

Building a word and character count app in vanilla JavaScript

My second project for the Vanilla JS Academy was an application that counts the number of words and characters in a block of text. Here’s how I approached the challenge.