📰 Dev.to · Ashish Kumar
36 articles · Updated every 3 hours · View all reads
All
Articles 83,454Blog Posts 106,014Tech Tutorials 20,410Research Papers 17,847News 14,028
⚡ AI Lessons

Dev.to · Ashish Kumar
3w ago
Finding Duplicate Photos in the Browser (Without Uploading Your Library)
Cloud duplicate finders ask you to ship your entire camera roll to a stranger's server. Modern browsers can hash folders locally, group exact copies, and let yo

Dev.to · Ashish Kumar
4w ago
What Is Preact and Why Does a 3KB Version of React Exist
React's 45KB comes from synthetic events and compatibility layers Preact drops. At 3KB, it calls native DOM directly. Here is what that trade-off means.

Dev.to · Ashish Kumar
1mo ago
Service Worker Caching Strategies: Cache-First, Network-First, and SWR
The best network request never happens. Service workers intercept and serve from cache. Here are the three Workbox caching strategies and when to use each.

Dev.to · Ashish Kumar
1mo ago
How HTTP/2 Made Five Frontend Performance Best Practices Obsolete
Domain sharding, CSS sprites, and JS concatenation were correct for HTTP/1.1. HTTP/2 turned them into anti-patterns. Here is what changed and why.

Dev.to · Ashish Kumar
🌐 Frontend Engineering
⚡ AI Lesson
1mo ago
React.lazy() Route Code Splitting Explained
React.lazy() makes a 5MB app's first load equal to just the landing route cost. Here is how route code splitting works and where it silently fails.

Dev.to · Ashish Kumar
1mo ago
Skeleton Screens vs Spinners: Perceived Load Time
Perceived and measured performance diverge more than most developers expect. LinkedIn's skeleton screen research explains why, and when skeletons hurt.

Dev.to · Ashish Kumar
1mo ago
Tree Shaking and Code Splitting in JavaScript
Your 2MB bundle isn't fate. How bundlers merge modules, why tree shaking fails silently, and how to split code so users only load what they need.

Dev.to · Ashish Kumar
1mo ago
Web Workers in React: Heavy Work Off Main Thread
CPU-heavy tasks block the UI — Web Workers fix that. Integrate Workers in React with Comlink, custom hooks, and Vite, with before/after profiling results.

Dev.to · Ashish Kumar
1mo ago
Network Optimization in React SPAs: Prefetching
Why React SPAs refetch data you already have, and how to fix it: HTTP cache headers, stale-while-revalidate, request deduplication, and prefetch strategies.

Dev.to · Ashish Kumar
1mo ago
React Re-rendering: When and Why Component Trees Update
Render phase vs commit phase, reconciliation and fibers, what triggers re-renders, referential equality traps, context pitfalls, and React 18 batching.

Dev.to · Ashish Kumar
1mo ago
OCR in the Browser: How Tesseract.js Makes PDF Text Extraction Free
Optical character recognition used to require cloud APIs and per-page billing. Tesseract.js runs the same engine inside your browser tab. A practical guide to w

Dev.to · Ashish Kumar
1mo ago
Why Client-Side PDF Tools Beat Server Uploads (Privacy, Speed, and Cost)
Most online PDF tools upload your file to a server. Modern browsers can handle PDF processing locally — and the implications for privacy, performance, and infra

Dev.to · Ashish Kumar
1mo ago
Building Slugs That Don't Break: Unicode, Diacritics, and Edge Cases
URL slug generation looks like five lines of regex until your blog post titled 'Café au Lait' produces /caf-au-lait. A practical guide to the edge cases that br

Dev.to · Ashish Kumar
1mo ago
Building Offline-First Web Apps with localStorage: A Practical Guide
localStorage is the simplest persistence layer the browser offers, and most developers either underuse it or abuse it. A practical look at when localStorage is

Dev.to · Ashish Kumar
1mo ago
The WiFi QR Code Format Decoded: Build One Yourself in 30 Lines
How those WiFi QR codes at coffee shops actually work — the format spec, the gotchas with special characters, and a 30-line JavaScript implementation that handl

Dev.to · Ashish Kumar
1mo ago
Naming Things: When to Use camelCase, snake_case, kebab-case, and PascalCase
A practical guide to naming conventions in code — which case belongs where, the conflicts that arise at language boundaries, and the conversion patterns that ke

Dev.to · Ashish Kumar
1mo ago
JSONPath Cheat Sheet: Querying Nested JSON Without Lodash
A practical JSONPath reference with real examples — the syntax that actually matters, the operators you'll use 90% of the time, and the differences between Goes

Dev.to · Ashish Kumar
1mo ago
What's Actually Inside a JWT? A Visual Walk-Through
JWTs are everywhere in modern auth, but most developers can't say what each part actually contains. A practical decode of a real token, the three biggest myths,

Dev.to · Ashish Kumar
1mo ago
From JSON to TypeScript: Five Ways to Stop Hand-Writing Interfaces
A practical guide to generating TypeScript types from JSON — comparing browser tools, quicktype, openapi-typescript, and Zod inference, plus the five mistakes a

Dev.to · Ashish Kumar
1mo ago
React.memo, useMemo, useCallback: When They Help vs Hurt
Most React memoization is premature. This breaks down when memo, useMemo, and useCallback actually help and when they add memory overhead with no real gain.

Dev.to · Ashish Kumar
1mo ago
React Concurrent Features: Urgent vs Deferred UI Updates
How startTransition and useDeferredValue fix frozen inputs and laggy UIs by separating urgent updates from deferred ones — with real before/after examples.

Dev.to · Ashish Kumar
1mo ago
React List Virtualization: Pagination vs Virtual Scroll
10,000 DOM nodes is slow even if they're not visible. When to paginate, when to infinite scroll, when to virtualize — and the real cost of each approach.

Dev.to · Ashish Kumar
1mo ago
JSON.stringify() Does Some Things You Probably Don't Expect
A few JSON.stringify() behaviors that trip people up: undefined disappearing, circular reference errors, the replacer argument, and NaN becoming null.

Dev.to · Ashish Kumar
1mo ago
Stop Writing TypeScript Interfaces by Hand for API Responses
Hand-writing TypeScript interfaces for JSON API responses is slow and error-prone. Here is a faster workflow using generation plus a few manual adjustments.
DeepCamp AI