Posts

  • Clean Up Your Redux Store Listeners When Component State Updates

    I'm writing a Gutenberg block for TypeIt that'll allow content creators to easily drop typewriter effects into WordPress. The Gutenberg infrastructure is heavily rooted in the React ecosystem, so building a block feels very much like building a React application. One piece of this ecosystem that's new to me, however,...Read It
  • Streamlining Conditional Statements with Logical Operators

    I've been seeing my preference change in how I write simple conditional statements in JavaScript. Consider the following: Back in the day, that's how just about every "if I have this, then do this" statement looked. As complexity and context changed, I might have pivoted a bit, but for the...Read It
  • If the Democratic Presidential Candidates Were JavaScript Packages

    BernieSanders.js - a helper library for making next-generation punch card programs for the browser. ElizabethWarren.js - a probability and statistics library widely used in reservation casinos. AmyKlobuchar.js - a highly opinionated alternative to ESLint, providing harsher, more demanding errors (no warnings). JoeBiden.js - a battle-tested framework for building RPG games...Read It
  • A Plot Proposal for Frozen III

    Kristoff, seeking a career more marketable than being an iceman, enrolls in a coding bootcamp in the Southern Isles, where a bitter and vengeful Prince Hans has been forced by his brothers to maintain a legacy Backbone application. Faking a change of heart, Hans befriends Kristoff, hoping to leverage his...Read It
  • For the Sake of Your Event Listeners, Use Web Workers

    I've been tinkering with the Web Worker API lately, and as a result, I'm really feeling the guilt of not looking into this well-supported tool a lot sooner. Modern web applications are seriously upping demands on the browser's main thread, impacting performance and the ability to deliver smooth user experiences....Read It
  • Blog for Your Own Sake

    The front-end development space is exhausting. It moves too fast, contains too much, and it won't wait for you to catch up. It’s hard. One thing that makes it eaiser is writing about it all — the problem solving, the tinkering with new technologies, the rubber duck attempts to wrap...Read It
  • Building a Shell Function to Copy the Latest Git Commit SHA

    Frequently enough, I find myself needing to copy the SHA of the latest commit in project, and doing it manually was becoming a chore. I'd been getting more comfortable and excited about improving efficiency by rolling custom shell functions (like I wrote about here), and so this felt like a...Read It
  • Should We All Start Implementing Differential Serving?

    There's been a lot of discussion around the potential to serve browsers the JavaScript bundles they can support. For example, if a user's on Internet Explorer, serve a transpiled, polyfilled bundle. If they're on a modern version of Chrome, deliver the slimmer, non-transpiled version. To accomplish this, the module /...Read It
  • Deploying Code with a Git Hook on a DigitalOcean Droplet

    I've been working on a project involving long-running, resource-intensive batch jobs in Node. At first, when my needs were simpler, I used Heroku to run these jobs. It was great, but eventually, the price:performance ratio offered became a little too unwieldy, and I chose to make a move from Heroku...Read It
  • A Simpler Unit Testing Setup for WordPress

    When I was getting started in web development, I remember how conceptually overwhelming it was to understand the whys, whats, and hows around things like unit testing. And to make it even more difficult, WordPress was the environment in which I spent most of my time — a platform not...Read It

2 of 4