Write your own Dotfiles

Some time ago I need to format my Mac twice times in the same week and it’s was very painful to configure all the things. I saw an opportunity to write my own dotfiles that can help me a lot when I need to change from a computer to another. Package Managers Photo from Unsplash by Elevate Brew Package Manager; Mac App Store CLI; Mac Setup I recommend the Mathias Bynens ....

March 8, 2020 · 2 min · Helder Burato Berto

Understanding concepts of functional programming with JavaScript

Let’s understand the fundamental concepts of functional programming using JavaScript language. The abbreviation FP will be used within this article to reference functional programming. Object Example In this article we’ll use the following object in our practical examples like the following: const animals = [ { name: "Max", species: "dog", likes: ["bones", "carrots"], }, { name: "Teodore", species: "cat", likes: ["mice", "carrots"], }, ]; What is functional programming? FP is the basis in Lambda Calculus - a formal system developed in the 1930s....

February 3, 2020 · 3 min · Helder Burato Berto

Exploring the bind method in JavaScript

In this article we will cover the “bind” functionality that makes up the JavaScript language. Introduction The main purpose of the bind method is to change the this context of a function independent of where it is being called. It’s very common the transformation of this occurs as new method calls are made and that a certain value is expected for our this context however we are faced with a this many times unexpected or undefined....

June 24, 2019 · 3 min · Helder Burato Berto

Decoding Proxies in JavaScript

In this post we will approach the object Proxy included in the version ECMAScript 6, creating the possibility of interception and making possible creation of customized methods. Unmasking the Proxy object The object Proxy is used to create custom behaviors it defaults to some parameters that we can see below. target: Object being virtualized by the Proxy; handler: Object containing the traps; traps: They are methods used to intercept operations on the properties of an object....

June 22, 2019 · 3 min · Helder Burato Berto

Simplify JavaScript Arrays

In this post we’ll cover some methods of JavaScript that will make it easier for you to work with arrays and write more elegant codes. Let’s define our arrays const beers = ["Heineken", "San Diego", "Coruja", "Saint Bier"]; const ages = [20, 25, 19, 21, 42]; We created two arrays, where we will use methods that we will understand next. Desmystifyng some incredible methods! Now that you’ve created the arrays you need yo work on, let’s put your hand in the dough and check the results with some very interesting methods....

June 18, 2019 · 4 min · Helder Burato Berto