Profile cover photo
Profile photo
Brad van der Laan
I belive that a team who has themselves developed a strong personal commitment to a project is a productive and innovative one.
I belive that a team who has themselves developed a strong personal commitment to a project is a productive and innovative one.
About
Posts

Post has attachment
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…
Swagger Protected API
Swagger Protected API
imaginativethinking.ca
Add a comment...

Post has attachment
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…
Swagger, huh what is it good for?
Swagger, huh what is it good for?
imaginativethinking.ca
Add a comment...

Post has attachment
Hey Brad how the heck do I use Swagger to document my Node.js service APIs? The Swagger tool which generates the documentation is a command line utility which when run will read the OpenApi Specification (OAS) description you created for your APIs and…
Swaggerize your API Documentation
Swaggerize your API Documentation
imaginativethinking.ca
Add a comment...

Post has attachment
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…
What the Heck is Sinon
What the Heck is Sinon
imaginativethinking.ca
Add a comment...

Post has attachment
Hey Brad I have a function which returns a promise, how the heck do I test that with Mocha? TL;DR Either call the done callback or simply return the promise. Checkout Things to Watch out For when testing Promises No worries I can help, the mocha testing…
Add a comment...

Post has attachment
Hey Brad I’m starting to write tests for a Node application and I hear I’m suppose to use mocha, what the heck is that exactly? mocha is a testing framework for JavaScript/Node. It includes a command line tool for invoking tests and APIs for defining and…
What the Heck is Mocha?
What the Heck is Mocha?
imaginativethinking.ca
Add a comment...

Post has attachment
Hey Brad I am writing some code and in a review someone said I should add some log messages but I don’t know what I should be logging. What purpose do the log messages serve and what information should I be logging? TL;DR See Summary section below What is…
Logging Best Practices
Logging Best Practices
imaginativethinking.ca
Add a comment...

Post has attachment
Hey Brad we are being asked to write automated tests with every code change, this is just more effort which is slowing us down and I don’t see the value. What the heck are automated tests for? I hear you, you spend all this effort making your changes and…
Add a comment...

Post has attachment
Hey Brad I’m getting a linter error no-param-reassign what is up with that? function foo(bar) { bar = 4; return bar; } The thing to remember about ECMAScript is that it passes by reference. So when you pass a variable into a function you are not passing…
Add a comment...

Post has attachment
Hi Brad, I started looking into doing web development and have been hearing about Jade; what the heck is that? Jade is a templating language to simplify the creation of HTML documents. Please note that when I was learning about Jade it was named Jade…
What the Heck is Jade?
What the Heck is Jade?
imaginativethinking.ca
Add a comment...
Wait while more posts are being loaded