Rajesh Royal

Rajesh Royal @rajeshroyal

About: Designer, Front-end Developer, Traveller, Hooper. I design and code beautifully simple things, and I love what I do.

Location:
India
Joined:
Mar 27, 2020

Rajesh Royal
articles - 70 total

Practical use of the event.stopPropagation React MUI Data Grid: Allowing Arrow Key Navigation for Input Fields

When using MUI Data Grid, you might need to navigate input fields with arrow keys. By default, arrow...

Learn More 10 2Jan 31

Unlocking WhatsApp Secrets: Analyzing Chat Data with Next.js 14 Web App

Have you ever wondered what secrets your WhatsApp chats hold? What if you could analyze your...

Learn More 9 0Sep 1 '24

Introducing Catepedia: A Nuxt 3 Cat Breed Search App

Hello, fellow developers! Today, I’m excited to share with you a project I’ve been working on:...

Learn More 7 0Apr 8 '24

Geolocation Web API - explained in less than 256 chars

This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature. ...

Learn More 19 1Mar 28 '24

How to view server logs in real-time in VS Code

Ever wondered how to view log files in real time without downloading them? I recently needed it, as I...

Learn More 42 6Mar 11 '24

100 Tips from The Pragmatic Programmers Book: Part 10/10

10.1. Coding Ain’t Done ’Til All the Tests Run. ’Nuff said.   10.2. Use...

Learn More 8 3Feb 2 '24

100 Tips from The Pragmatic Programmers Book: Part 8/10

8.1. Use Property-Based Tests to Validate Your Assumptions. Property-based tests will try...

Learn More 8 0Feb 1 '24

100 Tips from The Pragmatic Programmers Book: Part 9/10

9.1. Don’t Think Outside the Box—Find the Box. When faced with an impossible problem,...

Learn More 7 0Feb 1 '24

100 Tips from The Pragmatic Programmers Book: Part 7/10

7.1. Listen to Your Inner Lizard. When it feels like your code is pushing back, it’s...

Learn More 11 0Jan 31 '24

100 Tips from The Pragmatic Programmers Book: Part 6/10

6.1. Don't Pay Inheritance Tax. Consider alternatives that better fit your needs, such as...

Learn More 9 0Jan 30 '24

100 Tips from The Pragmatic Programmers Book: Part 5/10

5.1. Act Locally. Keep the scope of mutable variables and open resources short and easily...

Learn More 8 0Jan 29 '24

100 Tips from The Pragmatic Programmers Book: Part 4/10

4.1. Failing Test Before Fixing Code. Create a focussed test that reveals the bug before...

Learn More 30 9Jan 28 '24

100 Tips from The Pragmatic Programmers Book: Part 3/10

3.1. Prototype to Learn. Prototyping is a learning experience. Its value lies not in the...

Learn More 14 0Jan 27 '24

100 Tips from The Pragmatic Programmers Book: Part 2/10

2.1. English is Just Another Programming Language. Treat English as Just Another...

Learn More 14 0Jan 27 '24

100 Tips from The Pragmatic Programmers Book: Part 1/10

1. Care About Your Craft. Why spend your life developing software unless you care about...

Learn More 31 1Jan 27 '24

Baby steps to instantly improve your React project

React has established itself as a leading library for building dynamic user interfaces. While it's...

Learn More 41 6Sep 13 '23

Compress and serve big JSON dataset files in JavaScript like never before

Ever needed to server big JSON files over the network (like 100+ MB files). The efficient way we can...

Learn More 18 14Jan 28 '23

React.js - Interview Question - duplicate hashtag remover.

Had an Interview for React.js frontend developer for one of the MNC company. The question they asked...

Learn More 31 9Aug 12 '22

As a Interviewer what question you ask a dev while taking interview for react.js?

Context: For 3+ year experience. I have to talk interviews of candidates for the position of...

Learn More 23 7Jul 28 '22

React.js Interview - technical submission and detailed feedback

Update: The public links are down due to the company didn't wanted to have the assignment code...

Learn More 257 34Jul 25 '22

Interview experience at Google - SDE II

It was my first time getting an interview at any FAANG company. The position was for SD II Fullstack...

Learn More 50 8Jun 19 '22

Sum of All Odd Length Subarrays O(N) Leetcode #1588.

Given an array of positive integers arr, return the sum of all possible odd-length subarrays of...

Learn More 16 2Jun 9 '22

#1470 Crazy mathematics. Shuffle the Array in place O(1);

Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn]. Return the...

Learn More 10 4Jun 3 '22

Find all substring of a given string in O(n^2) time.

Below is the programmer written in JavaScript to find the all possible substrings of a given string...

Learn More 20 3May 29 '22

What is the use of Proxy and Reflect in JavaScript?

I have read the documentation for Proxy and Reflect on MDN but didn't understand much. Can anyone...

Learn More 33 18May 26 '22

How to use async/await inside for loop in JavaScript

There will be a time when you would want to run async operations inside for loops (ex. API...

Learn More 14 0May 24 '22

Implement binary search tree in JavaScript - simplest possible.

Here is a simplest Implementation of the binary search tree, with JavaScript classes. ⚠ The tree...

Learn More 14 0May 20 '22

Cache API in JavaScript - with just 20 lines of code.

let cache = {}; async function getData(url){ let result = ""; if(cache[url] !== undefined)...

Learn More 288 24May 15 '22

A small alternative of fingerprint.js, Broprint.js

Greetings developers ☕. I have published a browser fingerprinting library to NPM. It's written in...

Learn More 23 3Apr 20 '22

Generate video thumbnails in ReactJS, an open source thumbnail library.

Have you ever needed where the user uploads the video and has the option to select a thumbnail? if...

Learn More 50 4Mar 27 '22