Velocidad de Escape

Fluent Interfaces in JavaScript

A couple of days ago, I had a technical interview and one of the exercises was OOP and **Fluent Interface**, I had seen its use a couple of times, but I had never had to develop anything similar. ## Fluent Interface The Fluent Interface is often referred to as *Method Chaining*, *Fluent API* or *jQuery Style*. A fluent interface is an object-oriented API whose design relies extensively on method chaining. Its goal is to increase code legibility by creating a domain-specific language (DSL). The term was coined in 2005 by Eric Evans and Martin Fowler <sup>[1]</sup>. If you ever worked with...

JavaScript

Javascript Proxy, a gentle introduction

A couple of months ago I was asking to my colleagues if they knew what JavaScript Proxies were for, I think that none had used it yet, so I decided to read a little more about its use. Proxy object was a new feature that was introduced in ES6. **They allow you to intercept and customize operations performed on objects. E.g., function invocation, assignment, property lookup, enumeration, etc. We use proxies for blocking direct access to the target function or object.** JavaScript Proxy is too powerful a tool, which if used correctly could bring us a lot of excellent benefits. ## Simple...

JavaScript

How to update your Github Profile README automatically using NodeJS

GitHub’s new profile page README feature was release a couple of weeks ago, and it's a great feature that allows you to personalize your profile in multiple ways, some quite creative. Markdown lends itself best to standard static text content, that's not a problem for creative people, like **Victoria Drake**, who automate her profile using GO, and this post is inspired by her post. <a class="hover:no-underline text-blue underline" href="https://victoria.dev/blog/go-automate-your-github-profile-readme/" target="_blank" rel="noreferrer">How to Automate Your GitHub Profile README</a>. However,...

JavaScript

Automatic NodeJS version using NVM

If you have multiple projects in your computer, it's probable that all of them use a different version of NodeJS. For this reason, there are packages like <a class="hover:no-underline text-blue underline" href="https://github.com/nvm-sh/nvm" target="_blank" rel="noreferrer">NVM (Node Version Manager)</a> that allow you to do exactly that, handle different versions of NodeJS without too much extra configuration. Its installation and use are tremendously basic, just need to run `nvm help` if you need more help. In order to have a better organization, it is recommended to have a `.nvmrc` file...

JavaScript