Wes Bos asked a question on twitter that threw me off a bit. @derickbailey I’ve never understood what rabbitmq is / what it’s for. Do you have a post or something that explains what I would use it for? — Wes Bos (@wesbos) October 10, 2016 It was a simple question, but I realized that […]
Custom Errors w/ Clean Stack Traces in Node.js
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 […]
Optional Folders In Express.js Routes
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.
Paging Through The File List Of An AWS S3 Bucket, w/ Node
I’ve got some code running for the WatchMeCode media service that pulls a list of files from my AWS S3 bucket, and populates a database. The code has been working fine for a while now, but I recently wanted to add a sub-folder… and my code that reads the file list suddenly didn’t find the […]