useReducer is underrated
December 23, 2022Despite useReducer has been always linked to redux, it's the most awesome hook and way more superior than useState to handle the state.
chatGPTD as tech lead
December 22, 2022It's quite impressive the technical skills chatGPTD has developed, at least to evaluate the adoption of a technology. Change DDD by any other technology and you'll get the same result.
Avoid context hell
July 26, 2022One of the rule to optmize context api performance is to split make them small. This can be translated in a bigger amount of smaller contexts, and just like that, you will end up with the Context pyramid of hell.
Running on Next.js
June 18, 2022This site is running on Next.js
Should we stop using redux in favor of Context API?
December 12, 2021This post is based on an internal lightning talk I did for my team at my current company
Testing components based on useContext
September 30, 2021Let’s take a look at how to test a react component that is dependent on useContext hook.
Testing requests with miragejs
September 29, 2021Think about everything that involves making requests: loading states, error handling, cache, latency...
Using reducers to render views
December 2, 2020Sometimes, 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, 2020Polling, 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, 2020Last 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, 2020I’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, 2020State 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, 2020Documentation is a key part and more often under-rated aspect of any product.
Toasts
April 5, 2020Everyone knows what popup notifications are, but what does `Toast` mean?
Mocking modules in Jest
March 30, 2020Our 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, 2020Vivimos 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, 2019First 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, 2019Vivimos 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.