[DMWN #8] - In this article, I explained what queues are in Node.js, their relevance, and how they work.
Merry new week. I apologize that this didn’t come two days ago. I didn’t have access to my devices in the last two days.
I trust that last week was great for you.
Last week was a pretty busy one for me—trying to settle different things. I did nothing last week—not even my weekend youtube videos 😓—except office work during the week. But this week will hopefully be better.
Here’s what I have for today:
Featured Articles ✍️
A deep dive into queues in Node.js: Queueing is an important technique in Node.js used for effectively handling asynchronous operations. In this article, I explained what queues are in Node.js and how they work.
How to set a default image when an image fails to load: Images fail to load for many reasons. In this article, I share how to set a default image on a container such that if the original image does not load, the default image shows.
encodeURI vs encodeURIComponent: This article explains the difference between these methods which are used for formatting URL content
Featured Tools 🛠
next-intl: If you’re building applications with NextJS, you can use this library to integrate internalization seamlessly.
Useful hacks/tips ✨
force-with-lease: This is a safer alternative to force pushing. It protects your commit history, even as you override new commits.
Easily reference the previous git branch you were on with “
-
” (minus sign, an alias for@{1})
. Here’s the release note for this feature. This means you can do things likegit checkout -
to checkout the previous branchgit merge -
to merge the previous branchgit rebase -
to rebase the current branch with the previous branchbasically anywhere a name of a branch is required, you can use this sign to reference the previous branch
A new week, another opportunity to do amazing things! So go do amazing things 🚀
Do have a splendid week 🌟
🚀🚀