Posts

Showing posts from August, 2025

7 React Mistakes That Slow Down Your App (With Fixes & Examples)

Image
7 React Mistakes That Slow Down Your App (With Fixes & Examples) 7 React Mistakes That Slow Down Your App (With Fixes & Examples) A story-driven, example-rich guide to React performance. See the exact mistakes (with ❌ wrong vs ✅ right code) that silently make apps feel laggy—and how to fix them. By Udbhav · Aug 31, 2025 When I first started building with React, I assumed that just by using a modern library my UI would be fast. A few months and a couple of frustrated users later, I realized something important: React is fast, but only if we write with performance in mind. This post walks through seven common mistakes I’ve made (and seen in real projects), each with a short story, a wrong example, and a right fix you can copy-paste. Quick navigation Re-rendering...

Kubernetes for Beginners: A Story-Based Guide

Kubernetes for Beginners: A Story-Based Guide Kubernetes for Beginners: A Story-Based Guide By Your Name – Published on Day 30 of my Tech Writing Journey Kubernetes often feels like a complicated beast. YAML files, Pods, Nodes, Clusters — it sounds like a secret DevOps language. But what if I told you we can learn it through a story ? Let’s turn Kubernetes into something fun and human. The Village of Apps 🏘️ Imagine a village . Each house in the village represents an application. Some are small (like a to-do list app), some are big (like YouTube). Running apps directly on your laptop is like building houses without architects. They’ll collapse when more people (users) arrive. Kubernetes is like a city planner — it organizes the village, ensures houses are built strong, and if one collapses, a new one is built instantly. ...

10 JavaScript Traps That Make Your Code Slower (and How to Fix Them)

10 JavaScript Traps That Make Your Code Slower (and How to Fix Them) 10 JavaScript Traps That Make Your Code Slower (and How to Fix Them) We’ve all shipped code that “worked” but felt sluggish. Here are the most common performance traps I still see in real projects—plus simple, copy-pasteable fixes. By Regadamilli Udbhav · Aug 29, 2025 Quick navigation DOM thrashing (reflow/repaint storms) Heavy array chains in hot paths N+1 DOM queries & handlers Blocking the main thread Function churn & GC pressure Slow deep clones Framework re-render floods Unthrottled event listeners Big bundles, no splitting Chatty APIs & no caching Rule of thumb: fix what users feel first. Measure with P...

Build a Serverless File Uploader with Python and AWS in 20 Minutes

Build a Serverless File Uploader with Python and AWS in 20 Minutes Build a Serverless File Uploader with Python and AWS in 20 Minutes Ever wanted to upload files to the cloud without setting up a full backend? Today, I’ll show you how to build a serverless file uploader using Python and AWS in just 20 minutes. Whether you’re a beginner or a pro, this guide is practical and easy to follow. Why Serverless? Serverless apps save you from managing servers. AWS handles scaling, security, and infrastructure. You only write the code that matters—your business logic! AWS S3 → store files AWS Lambda → run Python code without servers API Gateway → expose your uploader as an endpoint Step 1: Create an S3 Bucket Go to AWS S3 console. Click Create bucket . Give it a unique name, e.g., my-file-uploader-bucket . Set Public access to off (we...

Serverless vs Traditional Backend: Which One Should You Choose?

Image
  If you’ve ever wondered whether to build your app with a traditional backend (servers, VMs, containers) or go serverless (AWS Lambda, Azure Functions, Google Cloud Functions), you’re not alone. Both approaches are popular, but they solve different problems. Let’s break it down with simple examples. What is a Traditional Backend? A traditional backend is like owning a restaurant kitchen: You buy equipment (servers). You pay rent and staff (hosting + ops team). Even if no one shows up to eat, you still pay the bills. Examples: EC2, DigitalOcean Droplets, Kubernetes clusters. ✅ Pros Full control over the server environment. Predictable performance. Easier for long-running processes. ❌ Cons You pay even when traffic is low. Requires setup, scaling, and monitoring. Ops team needed for maintenance. What is Serverless? Serverless is like using a food delivery service. You don’t own the kitchen. You just place an order (run a function) and pa...

What Happens When You Type Google.com in Your Browser? (A Beginner-Friendly Guide)

Image
  Have you ever stopped and wondered what really happens when you type google.com in your browser and hit enter? It feels so instant and magical — but behind the scenes, there’s a fascinating chain of events. In this blog, I’ll walk you through the journey of your request from your laptop to Google’s servers and back — step by step, without boring jargon. 1. You Type the Address When you type google.com and hit Enter , your browser says: “Alright, I need to talk to the Google server. But wait, where does Google actually live on the internet?” Computers don’t understand names like google.com . They only understand IP addresses (like 142.250.183.110). So the first step is: Find the IP address for google.com . 2. DNS: The Internet’s Phonebook This is where DNS (Domain Name System) comes in. Think of DNS as a giant phonebook of the internet . You give it a name ( google.com ) It gives you the phone number (IP address). Here’s what happens: Your computer check...

Kafka for Beginners: How I Finally Stopped Being Scared of Message Queues

Image
A few months ago, the word  Kafka  used to intimidate me. Not the author Franz Kafka (though his books are another challenge), but  Apache Kafka  — the famous “distributed event streaming platform” that every backend developer talks about like it’s magic. The first time I heard about Kafka in a meeting, it went like this: “We’ll just publish the event to Kafka and have the other service consume it asynchronously.” Everyone nodded. I pretended to nod too… but in my head, I was like: Press enter or click to view image in full size “What does that even mean?!” If you’ve been there, don’t worry — I’ll explain Kafka in plain English, with zero jargon (and a few real-life examples). What Kafka Actually Is At its heart, Kafka is just a  mailman for your data . You  send messages  (called  events ) into Kafka. Kafka stores them neatly in something called a  topic  (think: mailbox). Other applications come and  pick up those messages  w...