A 5 posts collection

Node.js & Recursion

Recursion is one of the initial courses we take in every CS university, with the most used example being the Fibonacci sequence: This works great in most of the languages we've been taught, but with asynchronous environments such as Node.js, things... »

Immutable Objects with Javascript

There is no way, by default, to ensure that your Javascript Object you passed into a function will stay as is nevertheless. And that creates a problem and a lot of side effects. To avoid this common pitfall we create immutable objects, those that no... »

Consistent dependencies across teams

A common pitfall when comes to development teams is the inconsistent software and library versions across developers. The first time you install a Node.js dependency by , the latest version of that package, will be installed along with the npm's... »

REST API Error Handling with Express.js

When you are writing an API, especially when is going to go public, you want the error responses to be as consistent as possible. You want your errors to be identical everywhere, to provide not too much information for your internal system but enough... »

References from my Javascript 101

A week ago Thanasis asked me to make a Javascript 101 for the SKG Node.js monthly meetup . The trap? I had to present it a week after. :/ At first, it looked not such an easy task, since I hadn't have any slides or anything ready for it. Fuck it... »

I'm Kostas Bariotis, a web developer, a proud wanderer and a passionate doer. My mission is to write clean and efficient code, to solve problems on the Web and to learn something more. Read more about me or get in touch.