A look at the middleware under the hood

Photo by Zulmaury Saavedra on Unsplash

There are 23 classic design patterns described in the original book Design Patterns: Elements of Reusable Object-Oriented Software. These patterns provide solutions to particular problems often repeated in software development.

In this article, I am going to describe how the Chain of Responsibility pattern works and when it should be applied.

Responsibility of Chain: Basic Idea

Wikipedia provides us with the following definition:

“The chain-of-responsibility pattern is a design pattern consisting of a source of command objects and a series of processing objects. Each processing object contains logic that defines the types of command objects that it can handle; the rest are passed to the…


Notificaciones entre objetos sin necesidad de utilizar las técnicas de Polling ni Busy-Waiting

Photo by Sergey Semin on Unsplash

Existen 23 patrones de diseño considerados clásicos, los cuales aparecen descritos en el libro Design Patterns: Elements of Reusable Object-Oriented Software. Estos patrones proporcionan soluciones a problemas concretos que se repiten frecuentemente en el desarrollo de software.

En este artículo, presentamos cómo funciona y cuando deberíamos aplicar el patrón de diseño Observer.

Observer: Concepto

Las siguientes definiciones del patrón Observer no las traduciremos de su versión original para no cometer un error en la traducción del concepto.

La wikipedia nos proporciona la siguiente definición:

The observer pattern is a software design pattern in which an object, named the subject, maintains a list…


The web development language still has a promising future

Typewriter
Typewriter
Photo by Markus Winkler on Unsplash.

I am often asked which programming language you should start learning to program with. The answer to that question is very simple: The programming language does not matter. The important thing is logical reasoning and your first contact with a programming paradigm. The rest will come step by step as you immerse yourself in the industry.

However, the truth is that I have encountered many who oppose learning JavaScript because of its notoriety in the industry. It is true that JavaScript was born with a purpose and the industry has used it to solve problems for which it was not…


Notifications between objects without polling or busy waiting

Figurine and headphones on a desk
Figurine and headphones on a desk
Photo by Victor Xok on Unsplash.

There are 23 classic design patterns described in the original book Design Patterns: Elements of Reusable Object-Oriented Software. These patterns provide solutions to particular problems often repeated in software development.

In this article, I am going to describe how the Observer pattern works and when it should be applied.

Observer: Basic Idea

Wikipedia provides us with the following definition:

“The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.” — Wikipedia

On the other hand…


Create object families that respect SOLID principles

a brick wall
a brick wall
Photo by Alexander Schimmeck on Unsplash

There are 23 classic design patterns described in the original book Design Patterns: Elements of Reusable Object-Oriented Software. These patterns provide solutions to particular problems often repeated in software development.

In this article, I am going to describe how the abstract factory pattern works and when it should be applied.

Abstract Factory: Basic Idea

Wikipedia provides us with the following definition:

“The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes.”— Wikipedia

On the other hand, the definition provided by the original book is the following:

“Provide an interface for…


9 tips to apply if you start working remotely

Photo by Minh Pham on Unsplash

Introduction

Remotely work is an emerging trend (in software development) and considered as a spotlight in any pandemic situation. So, what remote work implies. Working from home is counted as remote work but in practice is wider than that. Because some individuals are performing from their room, their home space, while some individuals prefer to perform from an eating place whereas sitting beside other people, in an exceedingly co-working area or libraries.

The most prominent type of remote work can include front line workers like vendors. For remotely work means meant for them is just portable work. Whenever they need it…


Decouple the build code respecting the open-closed principle (OCP)

A worker welding in a factory.
A worker welding in a factory.
Photo by Christopher Burns on Unsplash

There are 23 classic design patterns described in the book “Design Patterns: Elements of Reusable Object-Oriented Software.” These patterns provide solutions to particular problems that are often repeated in software development.

In this article, I’m going to describe how the factory method pattern works and when it should be applied.

Factory-Method: Basic Idea

“The factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact class of the object that will be created. …


The latest in JavaScript

a calendar for 2021 showing the page for January
a calendar for 2021 showing the page for January
Photo by Waldemar Brandt on Unsplash

Today, we’re going to look at ECMAScript features from 2015:

Introduction

ES2021 is the version of ECMAScript corresponding to the year 2021. This version doesn’t include as many new features as those that appeared in ES6 (2015). However, some useful features have been incorporated.

This article introduces the features provided by ES2021 in easy code examples. In this way, you can quickly understand the new features without the need for a complex explanation.

Of course, it’s necessary to have a…


Build complex objects flexibly

Photo by Ryan Stone on Unsplash

There are 23 classic design patterns described in the book Design Patterns: Elements of Reusable Object-Oriented Software. These patterns provide solutions to particular problems that are often repeated in software development.

In this article, I am going to describe how the builder pattern works and when it should be applied.

Builder Pattern: Basic Idea

The builder pattern is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented programming. The intent of the Builder design pattern is to separate the construction of a complex object from its representation.

Wikipedia

Separate the construction of a complex object from…


Patrones de Diseño en JavaScript — Parte 1

Existen 23 patrones de diseño considerados clásicos, los cuales aparecen descritos en el libro Design Patterns: Elements of Reusable Object-Oriented Software. Estos patrones proporcionan soluciones a problemas concretos que se repiten frecuentemente en el desarrollo de software.

En este artículo, se presenta el Patrón Estrategia: cómo funciona, y cómo y cuándo se debería aplicar.

Concepto

El patrón estrategia permite mantener un conjunto de algoritmos de entre los cuales el objeto cliente puede elegir aquel que le conviene e intercambiarlo dinámicamente según sus necesidades. Wikipedia

Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm…

Carlos Caballero

Hi! My name is Carlos Caballero and I’m PhD. in Computer Science from Málaga, Spain. Teaching developers and degree/master computer science how to be experts!

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