kamesh.work

#Javascript

1 min read

JavaScript Promises Are Like Ordering Biryani

A promise is a receipt for something that hasn't arrived yet. Here is how then, catch and finally fit into ordering food, with a small example.

1 min read

Just One Smart Move

Persistence, coupled with a strategic and thoughtful mindset, can turn dead ends into breakthroughs.

2 min read

Level Up Your Code Game: Easy Tips for Developer

Hey fellow code warrior! I'm sharing some simple tricks that helped me level up. Remember, these are just ideas to spark your own coding adventure!

4 min read

Compressing and Decompressing User Permissions in JS

User permissions are an essential part of any application's security model. One major use case for compressing and decompressing user permissions is to include the compressed permissions in an authentication token. When a user logs in or obtains an access token, you can attach their permissions to the token.

4 min read

Product Manager'w Bible : A 101 Guide

To guide you through this endeavor, I've prepared a one-page bible that encapsulates key principles, strategies, and mindsets essential for a successful product management journey.

2 min read

Boosting Website Responsiveness `with window.matchMedia`

Responsive web design is about ensuring your website looks and works well on different devices. It's essential for today's web. Traditionally, developers used the window width (window.innerWidth) to make sites responsive, but there's a better way: window.matchMedia. Let's see why.

2 min read

Detecting & Adapting to Device Types with Custom Hooks

In this blog post, we'll explore a custom React hook that allows you to detect the device type and adapt your UI based on the screen width.

2 min read

WebPack Loader vs Plugin

The purpose of webpack loader and plugin.