Hey Brad ECMAScript 2015 added Object Destructuring assignment but I was wondering can you destruct a nested object? I see so the question is what if I was given req.body but I’m just interested in req.body.device.id do I have to use the full name or can I destruct the object so that I only get… To read more click here.
Hey Brad I was using Object Destruction but I already have a variable in my scope with the same name as the object property how can I deal with this collision? Ah yes the fact that when destructing an object the local variable which holds the value of the property plucked off the object will… To read more click here.
Hey Brad I joined a new project and was starting out by fixing some linter issues in our test code when I noticed that when running the full test run the tests just crashed. They were working before I fixed up some linter issues but now I get the error that superagent (the NPM module… To read more click here.
Hi Brad, I started looking into doing web development and have been hearing about Express; what the heck is that? Express is a framework for Node.js, if you want to know more about Node.js you can check out my post What the Heck is Node.js. Express is an open source framework designed to make developing… To read more click here.
Hey Brad so I read Swaggerize your API Documentation and I’m sold but what about protected APIs? How do I use Swagger to hit APIs which require an authentication token? Swagger has you covered for cases where your API requires some sort of authentication token be included in the request; all you have to do… To read more click here.
Hey Brad I keep hearing people talk about how we should use swagger to document our APIs but what the heck is that? Good question, I too was confused by what exactly Swagger was because we talk about it as an API documentation tool similar to JSDocs but when you Google Swagger it appears to… To read more click here.
Hey Brad I want to write some unit tests, that is tests which don’t need me to stand up and seed a database just to test my codes logic, but how do I mock out calls to backing functions I don’t want to actually make during the test? That is a good question, in my… To read more click here.