My Articles

Adapter Pattern

In this tutorial we cover relatively easy yet very useful design pattern. Adapter pattern is good use case of dependency inversion principle. As usual we try first to write our code and based on problems we face, implement adapter pattern.

Object default values and use cases of builder pattern

In this article I will continue covering design patterns. Today's tutorial is about builder strategy pattern. It has can be very beneficial to maintain clean code. There are few tips and tricks which can help you to identify and use builder pattern. 

Strategy Pattern benefits

One of the ways to improve your code and become better developer in general one should familiarize himself with design patterns. There is amazing book from gang of four called "Design patterns. Elements of Reusable Object Oriented Software". It is one of the best known books. Today I hope to expl...

How object destructing can help you to write cleaner code

As a developers we always aim to write cleaner and more maintainable code. I was working on a project the other day and as most of developers we tend to get data from our backend and render it on our frontend.

What actually happens under the hood when we create a class in JS ?

JavaScript classes introduced in ECMAScript 2015 are syntactical sugar over JavaScript's existing prototype-based inheritance. So JS is looking more like other OOP languages, but what actually happens under hood? In this article I would like to dig deep into JavaScript and try to explain with code  examples and console logs.

Let's declare a class.