how to save a lot of time and make fewer mistakes

Image for post
Image for post

In this summary, I list some of the things that have helped me in my career. It reads fast, but applying them well can take a lifetime. I have been developing applications for almost 15 years, and still, sometimes, I have to stop and think in the essential parts of this profession.

  1. Take the code and break down big pieces of code into small functions.
  2. If by the time you leave work you haven’t solved the problem. Turn off the computer and leave it for the next day. …

A reason for dismissal and an excellent lesson for me

Image for post
Image for post

A few years ago, I led a project that ended in total disaster. It was not only my fault, but I was in charge, and in the end, I had to tell my bosses that it was better to close the project because we weren’t going to get anywhere, and the hours had skyrocketed.

The project initially had 9600 hours assigned to it at a fixed price, and although it seemed like a lot of hours, no one in my team had estimated them. This was the first big mistake, accepting the responsibility of something without making the previous analysis.

The beginning of a new project

A woman sits looking at the NY skyline.
A woman sits looking at the NY skyline.
Photo by in Pexels

Not long ago, I decided to change jobs. I had a “good job”: well paid, comfortable, and with a free schedule. The decision was not easy because I am no longer twenty years old, but I did it. In this article, I tell how was my last day of work: A mixture of sadness and fear to leave a “good” job and joy to start a new project.

Why did I decide to change jobs?

Basically, because I was bored and didn’t want to regret not having done it in the future, doing this is complicated, especially if you have responsibilities and bills to pay. Still, luckily…

14. Learn to disconnect

person looking at their reflection in a puddle
person looking at their reflection in a puddle
Photo by Marc-Olivier Jodoin on Unsplash

I have to say that I have gone through many professional stages during the 15 years I have been involved in software development. In some, I would have sent everything to hell and gone to the mountains to take care of cows. In others, everything was beautiful. Today, I have reached a point of professional and personal life balance, and I can say that I like to develop software a lot, but I cannot forget that it was not always like this and that this is not a profession for everyone.

In this article, I will talk about the things…

You can already do it, and it is very straightforward

Image for post
Image for post
Progressive Web App by Undraw.

Progressive Web App support for was added recently, and you can install it now with a couple of clicks from Google Chrome.

First of all, what is a PWA?

A PWA is an enhanced version of the web applications we all know and is a type of application somewhere between a normal web application and a native application.

The main features of a PWA are:

  • High performance, similar to native apps.
  • Ability to run offline.
  • Access to the phone’s sensors.
  • Support for push notifications.
  • An icon on the phone‘s home screen, similar to a native app.
  • Background processing in service workers in a separate thread.


Super useful helpers for dealing with numbers

Image for post
Image for post
Photo by Black ice in Pexels

This collection contains a set of (> = ES6) algorithms to work with Numbers. The truth is that I thought it would take less time to write this post, but in the end, it took me a little more time to find the optimal (or at least the simplest) solution for each case.

I hope it will be useful to you!


  1. reverseANumber
  2. isOdd
  3. sumAll
  4. average
  5. median
  6. calculateGcd
  7. calculateLcm
  8. isPrime
  9. euclideanDistance
  10. isDivisible
  11. formatToCurrency

1. reverseANumber

const reverseANumber = n => {
let sing = Math.sign(n).toString();
n = n.toString().replace('-','').replace('+','');
return sing.concat(n.split("").reverse().join(""));



Ten useful methods that you can use in 2021

Image for post
Image for post

As you probably already know, a JavaScript array is an object that represents a collection of elements. This article explains how to use the new methods that have been incorporated into JavaScript for handling arrays.

I hope you find it useful.

Let’s start!

1. Array.prototype.reduceRight()

The reduceRight() method executes the callback function once for each element present in the array, receiving four arguments: the initial value (or value from the previous callback call), the current element's value, the current index, and the array over which iteration is occurring.


arr.reduceRight(callback(accumulator, currentValue[, index[, array]])[, initialValue])


Sum array values:

const sum = [0, 1, 2…

Fundamental concepts and tips to go up a level

Image for post
Image for post

JavaScript has its detractors and followers but what is clear is that it is one of the most used languages nowadays and, I would say, funny because of the great number of tricks you can apply to it. In this article, I gather some fundamentals that you should know and a few tricks and tips.

Fundamental concepts in a nutshell

  1. Create an object constructor.
  2. Create an IIFE (Immediately Invoked Function Expression).
  3. Prototype.
  4. Scope.
  5. Closures.

Handy tips

  1. Get a random number between x and y.
  2. Convert the arguments object to an array.
  3. Get the max or the min in an array of numbers.
  4. Avoid the use of eval().

Wisdom, sometimes, needs no more than a few words

Image for post
Image for post

Many times, you can learn more from a short phrase than from a whole book. In this article, I compile 38 quotes that contain many years of experience in their words and from which we can learn a lot.

If you have been in this world for years, surely when you read them, they will make you smile knowing that they are true.

Enjoy them!

1. Truth can only be found in one place: the code.

By Robert C. Martin.

I agree. The code, unlike the comments in it, never misleads. Besides, the code always does what it says. …

How to build your first Program in WebAssembly

Image for post
Image for post
Photo by Pixabay

In this article, I will show you how to compile a TypeScript program to WebAssemby that prints the factorial of a number.

I will write it using TypeScript and then compile it with AssemblyScript, which compiles a strict variant of TypeScript to WebAssembly(Wasm) using Binaryen.

WebAssembly is current an MVP and only handles integers and floats and doesn’t natively support strings or other types. For this reason, instead of the typical HelloWorld that uses Strings, I will write a function that takes in a parameter of the numerical type and that returns its corresponding factorial.

Why Wasm?

One of the most common…

Kesk -*-

Software engineer - software Enthusiast - Sci-Fi writer.

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