Posts
-
Remember to Probably Target an Empty Object with Object.assign()
Hearken back, for a moment, to what it was like merging objects in 2014. There was no support for the feature in JavaScript runtimes themselves,
Read It -
Formatting PHP More Efficiently with a Bash Function
For quite some time now, I’ve been working with a PHP application that, up until recently, had no clearly-defined coding standards in place. At some
Read It -
Quickly Spin Up MySQL with Docker Compose
I’ve often needed to quickly spin up a local instance of MySQL. Docker Compose this makes it stupid easy. Rather than running a long, convoluted
Read It -
Writing a Regular Expression to Target Images Without a Class
A while back, I wrote about building your own lazy loading functionality into WordPress. In that post, I use a regular expression to add a
Read It -
Best-ish Practices for Dynamically Prefetching & Prerendering Pages with JavaScript
Resource hints (preload, prefetch, prerender, etc.) have breathed some fresh life into the front-end performance game, especially as browsers are coming to support them more
Read It -
Why Using reduce() to Sequentially Resolve Promises Works
css-tricks.comA post on CSS Tricks in which I explore why JavaScript’s reduce() method is able to help sequentually resolve a collection of Promise objects.
Read It -
Introducing Better Resource Hints for WordPress
It’s easy to rattle off a bunch of ways you can improve the performance of your website: minify your CSS & JSoptimize your imagescache the crap
Read It -
Using the posts_where Filter in WordPress
If you’ve spent 20 seconds in WordPress development, you’ve likely worked with, cursed, and fallen in love with the WP_Query class – one of the
Read It -
Preloading JavaScript Assets in WordPress
Squeezing every last drop of performance out of your website on any platform is an always-changing, never-ending, often addictive battle.Among the several tactics you can
Read It -
Creating the Simplest WordPress Plugin
If you’re making modifications to the functionality of your WordPress site or application, there are generally two places where people put the code to do
Read It -
Let’s Stop Making it Cool to Hate jQuery
When I started in development, beginning a new project often felt like drowning and then being asked to write some functioning JavaScript. At the time,
Read It -
Build Your Own Simple Lazy Loading Functionality in WordPress
When you’re looking to incorporate any given feature into your WordPress application, there’s rarely a shortage of third-party plugins out there to make it happen.
Read It -
Building a Lambda Function with Netlify
A while back, I wrote my first Lambda function with Firebase. Like every Lambda function tutorial on the web shows you how to do, mine
Read It -
Removing Usernames from Password Reset Emails
Securely handling personal information on the web is a pretty big deal, and one of the ways you do that is making sure none of
Read It -
Selecting Elements with No Class
If you’ve been a developer for more than 7 minutes, you’ve probably felt uncomfortably pressured into doing something weird with your code, like specifically styling
Read It