This article is part of my channel on Youtube. So, if you like share with your friends.

Build — What is this?

With the building pattern, you can build the object as needed. Imagine a fast food (Mac Donald’s) and you have some hamburgers, right?

Therefore, if you receive an order for three different hamburgers, you need to make a hamburger with the specifications. Such as: Double Cheese, Cheddar Bacon and Cheddar Chicken.

In the previous article, I wrote about the “Factory Pattern” and created a any scenario to illustrate the concept.

PS: If you don’t read, just click the link bellow:

Design Pattern —…


This article is part of my channel on Youtube. So, if you like share with your friends.

Factories — Generic creation of interfaces

In this article I’m going to talk about the creation design pattern called Factory.

This pattern is exactly what its name says, The Factory! So, If we need to think about the concept, this pattern is used to create new user interfaces and it’s very simple.

Are we to the real world to make this concept easier to understand?

Look at this scenario:
A user requests some reports and with that request he needs to pass a filter and that filter has a report…


This article is part of my channel on Youtube. So, if you like share with your friends.

SINGLETON — What the hell is Singleton?

Singletons, are objects that have only a single instance and a single access point.
NodeJs provides a basic module system for implementing a singleton.
These modules are cached when they need to be accessed using a require(). Let’s see below:

Are we going to bring this module into a real understanding scenario?
First of all, we will create two files. One called calculator.js and the other app.js

Calculator.js

App.js

Now, run app.js and…

Renan Deocleciano

❤ coding, coffe and music!

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