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.
It’s no secret that I’m a fan of various ES6 features. I use a lot of the new syntax options and methods on various objects whenever I can – in browser based apps as well as node.js apps. But I recently stumbled upon on a situation that had me wondering if the barrier to entry is really worth the cost, right now.
It’s hard to step back, sometimes, and think about the people on the other side of your frustration. But it’s a critical part of being both a software developer and a human. Because we are, after all, only human.
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 […]
Practice: we all know it “makes perfect” (makes habit). So, why do we expect do be able to do something perfect, the first time, sometimes? This week, I’m joined by the crew of my mastermind group, The Entreprogrammers, to talk about practice, getting over the hurdles of learning, and realizing that you can very easily […]
Using a module that’s hosted in npm or on github is fairly easy. You can “npm install” or just update your package.json file with the github location and be done. But what about developing locally? How do you get your code from a module that you are building, into a project that needs it, without […]
It’s a question that most developers have a fast answer for: “WRITE CODE!” … but, is that really what you’re paid to do? In this episode of Thoughts On Code I’ll explain why I don’t think your job is to just write code, after all.
A reader of my RabbitMQ Patterns email course recently asked a question about using messaging systems within an web application. Specifically, they wanted to know why you would use a request/reply pattern over a messaging server, instead of just handling the request within the HTTP call and the web server, itself. The short answer is, […]
A question was asked on StackOverflow about handling dead letters in RabbitMQ. The core of the question is centered around how to handle what are known as “poison messages” – messages that are problematic and cannot be processed for some reason. The person asking wants to know how to deal with these bad messages, when […]