Use mediator pattern to handle objects that needs to know about each other's state
Working as a consultant in the software industry is a real challenge in many ways, and as a self-employed consultant it's even more. There are different roles I…
Encapsulation and inheritance in JavaScript
Object-Oriented Programming, OOP, refers to using self-contained pieces of code to develop applications. We call these self-contained pieces of code objects…
Article about creating a tree view component
In this article I will describe a practical example of when I created a tree view component for this web site - using GraphQL to query data from Gatsby…
An introduction about variable scopes and hoisting
In this article I will go through JavaScript’s variable scope and hoisting and some of the peculiarities of both of them. It is important to understand how…
What is worker threads and - when and, how to use them in Node.js
Worker Threads are available in the Node.js module. Before we dive into my example use of Worker threads in Node.js, we will see what are worker threads and…
JavaScript prototype in more details
Prototype is a fundamental concept that every JavaScript developer must understand, and this article aims to explain JavaScript’s prototype in plain, detailed…
What is JavaScript objects and how to deal with them
JavaScript’s core, and most often used, and most fundamental data type is the Object data type. JavaScript has one complex data type, the Object data type, and…