PuruVJ

PuruVJ @puruvj

Location:
Jaipur, Rajasthan, India
Joined:
Sep 30, 2019

PuruVJ
articles - 35 total

Why I Analyzed 16,384 Bundle Combinations (And You Should Too)

How building a modular drag-and-drop library led me to analyze every possible plugin combination and achieve radical bundle size transparency for developers.

Learn More 5 0Jun 14

neotraverse: unbloating traverse

NPM: npmjs.com/package/neotraverse GITHUB: github.com/puruvj/neotraverse You might have heard of...

Learn More 1 0Jul 11 '24

perf: private count vs #count

Which one is faster: private count or #count? If you are a JavaScript developer, you might have...

Learn More 4 4Jul 5 '24

Jotai: The ultimate React State Management

Jotai is a relatively new state management library for React. It's simple, but make no mistakes, it's...

Learn More 76 1Nov 29 '21

macOS Web: Why I moved from React to Svelte

I recently moved macOS web from Preact to Svelte. Here's a firsthand account of my experience.

Learn More 38 2Aug 29 '21

Trying Golang as a JavaScript lover

I have written JavaScript, TypeScript, Dart, Python, PHP, C, C++, but never tried golang before. Here is my first hand experience trying it out

Learn More 32 3Aug 18 '21

The Zen of Preact's source code

Dive into Preact's source code and explore its simplicity

Learn More 18 2May 1 '21

Why I moved from Styled Components to (S)CSS modules

A little writeup of my reasons behind moving from Styled Components to SCSS modules, and the benefits I got out of this.

Learn More 282 52Apr 16 '21

Do you read your own blog posts after publishing?

Do you really read own blog posts after they're verified and published? Write in comments, or if you...

Learn More 0 4Apr 11 '21

Amazing macOS Dock animation in Svelte

Let's make the beautiful macOS Dock animation using Svelte

Learn More 28 0Apr 2 '21

Mindblowing 🤯 TypeScript tricks

Some TypeScript tricks that will blow your mind right off!!

Learn More 227 4Mar 19 '21

Moving React app to Preact ⚛ in 10 minutes with Vite

How I moved my 40+ components app from React to Preact in under 10 minutes.

Learn More 67 4Mar 9 '21

React TypeScript Hooks issue when returning array

React and TypeScript make up a great pair. But when you're trying to make your own hooks, and returning an array, TypeScript yells at your. Find out why.

Learn More 10 0Feb 19 '21

Using TypeScript without TypeScript 😎

Wanna use TypeScript but don't want all the compiler and tooling overhead? Read on to know how.

Learn More 44 9Feb 12 '21

How to infer recursive types with generics

I have a helper function that infers types from the keys of object I pass to it. Helps in autocomplet...

Learn More 0 0Feb 3 '21

An Ode ❤ to TypeScript

TypeScript is cool. Super cool. It's made us Web Dev's life super easy. Read me being a total fanboy about it.

Learn More 31 2Feb 1 '21

Bye bye Callbacks, hello Promises in NodeJS

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

Learn More 23 4Jan 25 '21

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

Learn More 13 4Jan 18 '21

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

Learn More 7 0Jan 11 '21

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

Learn More 50 17Dec 28 '20

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.

Learn More 3 0Dec 20 '20

Setting up auto-formatting in VSCode in 5 minutes

Set up auto formatting in VSCode in just 5 minutes.

Learn More 6 0Dec 13 '20

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.

Learn More 6 0Dec 7 '20

Async Await usage and pitfalls in Array.prototype.map() 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.

Learn More 7 4Sep 29 '20

Simplify code by promisifying `setTimeout`

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

Learn More 5 7Sep 28 '20

Split Array into `n` number of chunks

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

Learn More 6 0Sep 27 '20

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

Learn More 14 0Sep 24 '20

(Part 3) Image Optimization Automation with Incremental builds - How I created my personal site

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

Learn More 6 0Jun 29 '20

(Part 2) Blogging with Markdown - How I created my personal site

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

Learn More 6 0Jun 27 '20

(Part 1) How I created my personal site

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.

Learn More 25 0Jun 27 '20