El mal código tiene un precio, y escribir buen código no es tan complicado

Image for post
Image for post
lloorraa via need.pix

El mal código funciona. Todos lo sabemos. Los desarrolladores hemos estado escribiendo mal código durante años, sin dedicar ni un solo minuto a plantearnos si lo estábamos haciendo bien o mal. Sin embargo, escribir código que ‘funciona’ es comprensible, ¿no? Al fin y al cabo, tenemos que lidiar con el estrés de seguirle el ritmo a la industria y cumplir las exigencias de nuestro trabajo.

La respuesta es no. Hacer mal código tiene un precio. ¿Alguna vez os habéis encontrado en la situación de no ser capaces de entender vuestro código después de un tiempo, y tener que invertir horas o incluso días para averiguar qué es lo que hace ese código? …


Create Observables from a variety of data types, objects, and events

Image for post
Image for post
Photo by chuttersnap on Unsplash

Introduction

RxJS is the most popular framework for functional reactive programming (FRP) in JavaScript. Angular is entirely built around RxJS and FRP concepts. It’s a fantastic technology and incredibly useful, but it has one major downfall: It has a somewhat steep learning curve, which some developers find discouraging.

In view of this, I’ve decided to create the “RxJS Lessons” series, which will cover every single operator provided by RxJS with simple examples. Here are the parts that this series is comprised of so far:

  • RxJS Lessons: How to Create Observables

How to Create Observables

RxJS provides us with many functions to create Observables. So many, in fact, that some developers can find themselves at a loss of where to start. In this part of the “RxJS Lessons” series, we’ll cover all of the Observable creation functions, which are the…


Todo lo que necesitas saber para crear Observables

Image for post
Image for post
Photo by Laura Seaman on Unsplash

Introducción

RxJS es el framework de programación funcional reactiva (PRF) en JavaScript más popular. De hecho, Angular está construido sobre RxJS y conceptos fundamentales de la PFR. Es una tecnología fantástica e increíblemente útil, pero tiene un serio problema: la curva de aprendizaje es bastante elevada. Esto es bastante desalentador para los desarrolladores que quieren aprender RxJS.

Por esta razón, he decidido crear la serie de Aprende RxJS, a lo largo de la cual aprenderemos a utilizar todos y cada uno de los operadores que nos proporciona RxJS, mediante ejemplos sencillos. Estas son las partes que conforman la serie:

  • Aprende RxJS: Cómo Crear…


El formato importa

Image for post
Image for post
Photo by Aron Visuals on Unsplash

Todo el equipo de editores profesionales de PuntoTech siguen escrupulosamente una guía de estilos, que ha de cumplirse para que cualquier artículo pueda ser publicado.

¿Para qué hacemos esto?

Para que haya uniformidad y armonía en todas nuestras publicaciones, y para asegurar el estándar de calidad que representa a PuntoTech. Para ello os presentamos una serie de consejos y puntos a seguir a todos los escritores (o aspirantes a escritores) de PuntoTech:

Títulos y Subtítulos

  • El artículo debe tener título y subtítulo.
  • Para la capitalización de los títulos, utilizamos el estilo determinado por las normas APA.
  • La capitalización de los títulos debe ser la…


Image for post
Image for post

RxJS es el framework de programación funcional reactiva en JavaScript más popular. Esto quiere decir que muchísima gente utiliza RxJS diariamente en sus proyectos. Muchos de estos desarrolladores son conscientes de las buenas prácticas de código limpio, pero, ¿Y de las buenas prácticas en RxJS? ¿Sois consciente de ellas? ¿Las aplicáis en vuestro código?

En este tutorial hablaremos sobre las buenas prácticas que utilizo diariamente en mi código, con ejemplos prácticos. Veremos los siguientes puntos:

1. Evitar lógica dentro de la función Subscribe

2. Utilizar Subjects para completar Observables

3. Evitar la lógica duplicada

4. Evitar el anidamiento — Utilizar encadenamiento en su…


A series of practices I use every day in my code

Image for post
Image for post

RxJS is the most popular framework for functional reactive programming (FRP) in JavaScript. This means a lot of people are using RxJS daily in their projects. Most developers are aware of the common clean-code practices, but what about RxJS best practices? Are you aware of the dos and don’ts when it comes to FRP? Are you applying them in your code?

This tutorial will focus on several best practices that I use daily when writing code, with practical examples. We’ll be covering the following points:

1. Avoid logic inside the subscribe function

2. Use subjects to force completion

3. Avoid duplicated…


Image for post
Image for post

Introduction

Contingency tables are very useful when we need to condense a large amount of data into a smaller format, to make it easier to gain an overall view of our original data.

To create contingency tables in R we will be making use of the table() function. Since table() is so versatile, we can build contingency tables from something as simple as character strings, to something as complex as data frame objects.

Something that we have to keep in mind is the fact that as we add more data, or as the complexity of our data increases, our contingency table will grow more complex too. …


Bad code comes at a price, and writing good code isn’t that complicated

Image for post
Image for post
lloorraa via need.pix

Bad code works. We all know this. Developers have been writing code for years without giving a single thought to whether they were doing it right or not. It’s understandable, isn’t it? After all, we already have to deal with the stress of keeping up with the industry and the demands of our job.

The answer is no. Writing bad codes comes at a price. Have you ever faced the issue of not understanding your own code after a couple of weeks and having to spend hours, or even days, figuring out what was going on?

The solution to this (extremely) common problem is to make your code as clear and informative as possible. I will go as far as to say that your code should be understood even by a non-technical person. It’s time to drop our excuses and improve the quality of your code. …


Image for post
Image for post

Introduction

The spread operator, , was first introduced in ES6. It quickly became one of the most popular features. So much so that, despite the fact it only worked on arrays, a proposal was made to extend its functionalities to objects. This feature was finally introduced in ES9.

The goal of this tutorial, which is divided into two parts, is to show you why the spread operator should be used, how it works, and to deep dive into its uses, from the most basic to the most advanced.

If you haven’t read the first part of this tutorial, I encourage you to do so! …


Image for post
Image for post

Introduction

The spread operator, , was first introduced in ES6. It quickly became one of the most popular features. So much so that despite the fact it only worked on arrays, a proposal was made to extend its functionalities to objects. This feature was finally introduced in ES9.

The goal of this tutorial, which is divided into two parts, is to show you why the spread operator should be used, how it works, and to deep dive into its uses, from the most basic to the most advanced.

Here is a short summary of the contents of this tutorial:

Part 1

  1. Why the spread operator should be…

About

Estefanía García Gallardo

Just a person who’s in love with computer sciences 💕💕 Developer of Npkill ~ https://npkill.js.org/

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