✕ Clear all filters
36 articles

📰 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
React.lazy() Route Code Splitting Explained
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.
Skeleton Screens vs Spinners: Perceived Load Time
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.
Tree Shaking and Code Splitting in JavaScript
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.
Web Workers in React: Heavy Work Off Main Thread
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.
Network Optimization in React SPAs: Prefetching
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.
React Re-rendering: When and Why Component Trees Update
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.
OCR in the Browser: How Tesseract.js Makes PDF Text Extraction Free
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
Why Client-Side PDF Tools Beat Server Uploads (Privacy, Speed, and Cost)
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
Building Slugs That Don't Break: Unicode, Diacritics, and Edge Cases
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
Building Offline-First Web Apps with localStorage: A Practical Guide
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
The WiFi QR Code Format Decoded: Build One Yourself in 30 Lines
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
Naming Things: When to Use camelCase, snake_case, kebab-case, and PascalCase
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
JSONPath Cheat Sheet: Querying Nested JSON Without Lodash
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
What's Actually Inside a JWT? A Visual Walk-Through
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,
From JSON to TypeScript: Five Ways to Stop Hand-Writing Interfaces
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
React.memo, useMemo, useCallback: When They Help vs Hurt
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.
React Concurrent Features: Urgent vs Deferred UI Updates
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.
React List Virtualization: Pagination vs Virtual Scroll
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.
JSON.stringify() Does Some Things You Probably Don't Expect
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.
Stop Writing TypeScript Interfaces by Hand for API Responses
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.