Hi, my name is Carlos Andrés Molina Avendaño.
I work as a software developer in Seattle, I love veggie food, reading, nature and playing with cats.
Besides this website where I write things, you can also find me in Twitter and Github.
Here there is a list with my latest posts
Create a dark theme
Learnings from adding support to dark mode to my website
Publish a TypeScript package in npm
Write once, re-use everywhere, by publishing your code in npm!
Time-out functions in JavaScript
Is it possible to stop a function if it has been running for a long time?
Logging functions in JavaScript
Keep track of your functions and methods' inputs and outputs, cleanly.
Retrying functions in JavaScript
The problem statement is: you want to execute a function that may fail, and you want to retry it N times. How could you solve this?
Small Things Matter: Returning early
Small improvements add up. Sadly, the same thing happen with less fortunate decisions. Keep your code with less indentation with this trick.
Know your tools: JavaScript Promises
I am sure you have used Promises before, but if you avoid them because of their mystical behavior, this article is for you.
Using images for every resolution
Learn how browsers can choose the right image for different screen resolutions