HomeThoughtsAbout me
  • Running on Next.js

    June 18, 2022

    This site is running on Next.js

  • Should we stop using redux in favor of Context API?

    December 12, 2021

    This post is based on an internal lightning talk I did for my team at my current company

  • Testing components based on useContext

    September 30, 2021

    Let’s take a look at how to test a react component that is dependent on useContext hook.

  • Testing requests with miragejs

    September 29, 2021

    Think about everything that involves making requests: loading states, error handling, cache, latency...

  • Using reducers to render views

    December 2, 2020

    Sometimes, you need to render JSX conditionally based on some conditions or state. Read how we can use reducers to avoid ternary operations abuse.

  • Polling

    December 1, 2020

    Polling, in computer science, refers to actively sampling the status of an external source of data. For instance, it's a common technique when you upload a file to the server and you want to measure the progression. It's useful also when you want to check if some external library has been loaded and it's ready to use.

  • useEffect and DOM elements

    June 24, 2020

    Last week I was coding a feature in my current project and I learned something new. Well, better said, something I didn't know or something I was using wrong.

  • Reusable components or how awesome are the CSS custom properties

    May 13, 2020

    I’ve been reading a lot about _design tokens_ lately, and I think they’re super interesting. Design tokens are tiny pieces of UI information to store design related information such as colors, fonts, spaces, animations, etc...

  • Redux abuse

    April 12, 2020

    State management in complex React applications was a hard task before redux came up. Redux is a small library designed to manage the state of data in JavaScript applications.

  • How to write good documentation

    April 6, 2020

    Documentation is a key part and more often under-rated aspect of any product.

  • Toasts

    April 5, 2020

    Everyone knows what popup notifications are, but what does `Toast` mean?

  • Mocking modules in Jest

    March 30, 2020

    Our unit tests should never rely on code that is outside our control and they certainly shouldn't be calling across the network to a server. A good test needs to be repeatable and fast and relying on outside systems and/or data doesn't help us meet those goals.

  • Confinamiento

    March 29, 2020

    Vivimos una crisis sanitaria y económica sin precedentes, en todo el mundo. Más de un tercio de la población mundial está en confinamiento, trabajando desde casa, los que podemos, sin la libertad de salir a dar un paseo, algo tan simple y que todos damos por hecho.

  • My type of reset

    October 21, 2019

    First of all, is css reset still needed in 2019? I actually think it never has been necessary. But a CSS reset will help you to make your project maintain the look and feel between every browser and might save you a lot of time of browser-testing and debugging.

  • Mi impostor

    October 18, 2019

    Vivimos tiempos complejos, donde el nivel de exigencia es altísimo. Lo que llamamos social media, nos bombardea a diario, a todas horas, con contenido acerca de lo que podríamos ser y como conseguirlo.