What do you mean, “why are the websites down?” – I asked as I turned to look at my boss, in confusion. “They’re not down.“ “See, they’re …” … WHAT?! It was the early 2000’s and I was nervous about what I had built – a new and ambitious application with a new language runtime […]
Some recent discussion in the WatchMeCode slack spawned a bit of research into creating custom errors through factory methods, while keeping the stack trace for those errors clean, in Node.js After a bit of digging, I found a good solution using Node’s Error.captureStackTrace method, and recorded a quick screencast to highlight it’s use. The Screencast […]
There are a lot of great aspects of software development, including writing code, solving problems, and generally working with cool technology and toys. But of all the things that I do as a developer, there is 1 thing in particular that I absolutely love doing. And that one thing? It’s not solving problems, surprisingly (though […]
I recently had a conversation in the WatchMeCode slack where someone was asking about the order in which various parts of Express middleware would fire. After some initial thoughts on the question, I found myself not 100% certain of the order between calls to “.use”, vs get/post/etc. So I whipped up a quick demo app […]
I recently found myself needing to support an unknown URL folder structure with an Express router. The gist of it is that I am serving video files that may or may not be in a sub-folder, from another service. And after some digging, I found there are at least three ways to make this work – most of which involve copy & paste programming.