How to Monitor Client-Side Upload Progress (with XMLHttpRequest)

XMLHttpRequest Upload Progress

Showing a user something like a progress bar during a file upload is handy and let's them know that stuff is working. Higher level abstractions like fetch don't really provide a look into how much of a request body has been sent, but good ol' XMLHttpRequest does. In order to monitor upload progress, attach an… Continue reading How to Monitor Client-Side Upload Progress (with XMLHttpRequest)

Building Your Own (JavaScript) Test Doubles

A test double is an object or function that behaves like a real piece of code, but is, instead, solely for a test. It mimics the functionality of something, without being that something. There are plenty of frameworks to deal with test doubles in JavaScript (like sinon), but it's helpful to the various types of… Continue reading Building Your Own (JavaScript) Test Doubles

When to Use Single Page App JavaScript Frameworks

Before I built software for a living, I did SEO. Before I did SEO, I was a content producer. I know what's necessary to rank well on search engines and have good showing on the various social media sites. This means I have a hard time accepting single page, all-javascript applications. It just doesn't feel… Continue reading When to Use Single Page App JavaScript Frameworks