Since in JavaScript everything is basically an object you can easily store functions as values in objects. Because of that you can use the object keys to “name” your functions and call them. With this and a bit of currying you can write very easy to read code. Let’s see how.

But first what is currying? Currying is mainly a thing in functional programming where a function with multiple arguments is turned into functions with one argument that returns a function that accepts the next argument and so on. …

In this article we’re going to explore the secrete behind the terms “asynchronous”, “event-driven” and “nonblocking I/O”. By the end you will not only have a good understanding of the Event-Loop but also know why Node.js is not so single threaded. A nice side effect will be to finally understand proccess.nextTick() and setImmediate().

To understand the Event-Loop we first need a basic understanding of Node.js. Node.js is an asynchronous event-driven JavaScript runtime. Basically what Node does is providing us an easy-to-use consistent JavaScript API for all the complex stuff like networking, file operations, streams, etc. Node does this by connecting…

Max Dollinger

I’ve studied a lot from law over geology to business IT. And lost my heart to programming. I life by the credo “always be curious and never stop learning”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store