The Factory Method pattern belongs to the group of creational design patterns. Its main purpose is to create configurable objects based on given data.
The sixty-four-dollar question: what’s the difference between implementing a and extending a class? Let’s make things clear in no time.
In ES6 (ECMAScript 6) JavaScript modules, you can export values from a module and import them into another module. This is great because it allows you to organize, modularize and reuse code in a very efficient way.
This is a very common question that can be answered in many ways. In this post, I will share a tip that I think is clean and elegant.
Memoization is a caching technique that consists in saving the result of an expensive function and returning it if the same inputs are provided again. In short, it’s like having a “no smoking” sign inside a restaurant instead of going to each customer and asking them not to light their cigarettes.
During the development of an application we often need to simulate the response to an API call without having a real endpoint available.
Npm is an excellent package manager for JavaScript and for sure it’s the first choice when it comes to managing packages and dependencies, but sometimes we just need to install a library from GitHub.