Several years ago, I found myself sitting in a classroom on a Saturday morning. It was an exciting day for me, attending my first code camp. I was surrounded by other developers with a shared enthusiasm for what we do, and had already seen several outstanding presentations. The subject for the classroom in which I […]
In What Order Does My Express.js Middleware Execute?
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 […]
The High Barrier To Entry For ES2015 (ES6)
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.
Develop Against Local Node Modules, Deploy From npm or Github
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 […]
Mock Objects In NodeJS Tests, With Jasmine Spies
If you’ve been using Jasmine for testing your JavaScript, you’ve probably used spies to replace functions on objects and check that they were called, check arguments, etc. Spies are a powerful and necessary part of unit testing with Jasmine and I use them a lot. But I’ve recently found myself wanting further separation from dependencies […]