As of September 2020, Moment.js—probably the most popular JavaScript library for handling dates—became a legacy project in maintenance mode. As the Moment team explained: It...more.
In a previous post, I wrote about dependency inversion using render props. If you don’t know about the render props pattern, I would recommend checking...more.
I remember the day when I “discovered” dependency injection. I was having a difficult time testing a console view, and all of my mocking strategies...more.
To understand closures and their use in JavaScript, it is essential to understand that closures rely on the scope mechanism. So, before we jump into...more.
Do you write JavaScript? If you do, you probably do a lot of asynchronous stuff. Here’s the thing about asynchronous stuff: typically we use callbacks,...more.