Dheeraj Bartwal·Oct 31Your React State Is a Snapshot, Not a VariableWhy calling setCount(count + 1) three times only adds one, why your setTimeout logs old values, and the mental model that makes these bugs…
Dheeraj Bartwal·Jul 30Solving React Context’s Biggest Performance Problem with useSyncExternalStoreReact’s Context API is one of the first tools we reach for to avoid prop drilling. It’s simple, built-in, and works great — until your app…
Dheeraj Bartwal·Jul 19Most JavaScript Developers Get == Wrong in Interviews (Not Because It's Hard)One of the most common JavaScript interview questions goes something like this:
Dheeraj Bartwal·Jul 17Stop Importing Axios Everywhere: Building a Swappable API Layer in TypeScriptHow one small interface makes your network code testable, replaceable, and future-proof — explained in plain language.A response icon1A response icon1
Dheeraj Bartwal·Jul 4The Hidden Magic Behind JavaScript’s +, -, and == OperatorsIf you’ve ever been asked this interview question:
Dheeraj Bartwal·Jul 1How Java Knows Which Method to Call: Dynamic Dispatch, vtables, and itables ExplainedDynamic Method Dispatch is one of the core concepts behind Java’s runtime polymorphism. Most developers know that an overridden method is…
Dheeraj Bartwal·Jun 29Java Generics Explained: From Basics to Advanced (With Real-World Examples)One of the biggest goals of software development is code reuse. Imagine writing the same class multiple times just because the data type…
Dheeraj Bartwal·Jun 25The Contract Every Java Developer Must Understand Before Using HashMap or HashSetA deep dive into why equal objects must produce the same hash code — and the exact bugs you get when they don’t.
Dheeraj Bartwal·Jun 14, 2025🧠 Building a Real-Time Chat App in React Native with CometChatIn today’s mobile-first world, real-time communication is an expectation, not a luxury. In this post, I’ll walk you through the…
Dheeraj Bartwal·Feb 7, 2025🚀 Mastering Forms in React Native with React Hook Form: Optimized Performance & Minimal Re-RendersForms are an essential part of any mobile app, whether for user authentication, feedback, or data collection. In React Native, handling…