Bye bye Callbacks, hello Promises in NodeJS

Completely get rid of callbacks in NodeJS and replace them with the great Promises.

Jan 25, 2021

NodeJS Create folder if not exists in 3 lines - No dependencies

The simplest and dependency-free way to create a folder in NodeJS if it doesn't exist

Jan 18, 2021

Simple code with fs.promises and async await

If you've spent some time with Node's fs API, you know how huge a pain its callback based pattern can get. Read out how to flatten your code using promises and async await syntax

Jan 11, 2021

Top level Await is AWESOME!! 😍

Top level await is literally the GOAT (Greatest of All Time). In every way. Read on to know why, how to use it, and its implications

Dec 28, 2020

Free Github pro and Perks for Students

Are you a student? Then you better enroll yourself into getting the Github Student Developer Pack. So many great perks. Find out more about it.

Dec 20, 2020

Setting up auto-formatting in VSCode in 5 minutes

Set up auto formatting in VSCode in just 5 minutes.

Dec 14, 2020


Just some random rant to make myself blog every week

Dec 09, 2020

Cleaning up tag-along git commits in Pull Requests

It's easy to submit dirty PRs with unnecessary number of stowaway commits. Learn how to clean this up.

Dec 07, 2020

Async Await usage and pitfalls in and chaining

Using async await in array methods is quite tricky. But it gets even trickier when you chain multiple array methods. Find out how.

Sep 29, 2020

Simplify code by promisifying `setTimeout`

Simplify and clean your codebase by making setTimeout more idiomatic using Promises

Sep 28, 2020

Split Array into `n` number of chunks

Split an array into `n` number of multiple arrays with JavaScript

Sep 27, 2020

GIF to MP4 conversion for web using NodeJS

GIF to MP4 conversion for performance is all the rage nowadays. But doing so in practice is really difficult, especially for cross-browser compatibility. Learn how to do it right

Sep 25, 2020

SERIES How I created my personal site

Part 3 - Image Optimization Automation with Incremental builds

In this post, I delve deep into how I automated image optimization on my blog.

Jun 29, 2020

SERIES How I created my personal site

Part 2 - Blogging with Markdown

In this post, I delve into the details of how I built the blogging with markdown system

Jun 28, 2020

SERIES How I created my personal site

Part 1 - Tech Stack & Design

In this post, I delve into the details of the design part of how I built my personal site with StencilJS and what did I use to do so.

Jun 27, 2020

Safeguarding target=_blank links

Do you know adding a link with target=_blank has the potential of crashing your page and is very insecure? Find out how and its prevention.

Jun 09, 2020

Performantly loading Google Fonts based on Data Saver

Efficiently and Asynchronously load Google Fonts based on Data Saver mode

Jun 05, 2020

Web Workers: Intro and Basic Usage

Have you ever heard this term "Web Workers" mentioned somewhere and wondered what the hell is this new thing? let me introduce you to this great tech.

Jun 05, 2020

StencilJS Route Change events - Without any dependencies

How to detect route changes in StencilJS Router using the core StencilJS APIs. No dependencies.

Jun 03, 2020

Pitfalls when using Stencil Helmet during Prerendering

Stencil Helmet can break the whole app really bad on some occasions, some so random that you might never find out why

Jun 02, 2020

My First Blog post

My very first blog post on my very first functional site

May 31, 2020