The Javascript Event Loop explained!

In JavaScript, almost all I/O is non-blocking. This includes HTTP requests, database operations and disk reads and writes; the single thread of execution asks the runtime to perform an operation, providing a callback function and then moves on to do something else. When the operation has been completed, a message is enqueued along with the […]

Microservices Architecture: What, When, and How

Microservices have seen widespread adoption. Even Google Trends points to this rapid evolution. Check out what microservices are, a brief overview of when and how to use them, and advantages over monolithic structures. Introduction The microservices architecture pattern is getting a lot of attention these days and it’s trending. If it is hard to believe, then just […]

NodeJS – Introduction

The popularity of JavaScript have skyrocketed in recent years and inevitably the Node.js and its ecosystem have played an important role. In last few years JavaScript has shown its strengths and have proved to be a major player in not just web development; even in IoT. In the next few weeks I am planning to […]

Object Oriented JavaScript: Only Two Techniques Matter

We will focus on only the best two techniques for implementing OOP in JavaScript. Indeed, many techniques exist for implementing OOP in JavaScript, but rather than evaluate each, I choose to focus on the two best techniques: the best technique for creating objects with specialized functionalities (aka Encapsulation) and the best technique for reusing code […]

Prototype – in plain language

There are two interrelated concepts with prototype in JavaScript: 1. First, every JavaScript function has a prototype property (this property is empty by default), and you attach properties and methods on this prototype property when you want to implement inheritance. This prototype property is not enumerable; that is, it isn’t accessible in a for/in loop. […]