SBSameer Bhagtaniinblog.sameerbhagtani.dev·May 8 · 7 min readReact Virtual DOM Explained: How It Works Under the HoodIntroduction If you've ever built something with vanilla JavaScript and had to update the UI frequently, you already know the pain. You call document.getElementById, change some text, update a class, 00
SBSameer Bhagtaniinblog.sameerbhagtani.dev·Apr 22 · 18 min readBehind the Root: Linux Filesystem DemystifiedIntroduction If you've ever installed and tried out Linux after seeing a cool hacking sequence in a sci-fi movie, you know that opening it feels like stepping into a strange city with many roads named00
SBSameer Bhagtaniinblog.sameerbhagtani.dev·Apr 15 · 4 min readUnderstanding this in JavaScriptIntroduction Most JavaScript confusion around this comes from one wrong assumption: that this depends on where a function is defined. It doesn't. It depends on who called the function. That one shift 00
SBSameer Bhagtaniinblog.sameerbhagtani.dev·Apr 9 · 6 min readMap and Set in JavaScript: A Practical GuideIntroduction JavaScript gives you objects and arrays out of the box, and for a long time those two were the default answer to almost every data storage problem. Objects for key-value pairs, arrays for00
SBSameer Bhagtaniinblog.sameerbhagtani.dev·Apr 9 · 5 min readDestructuring in JavaScript: Write Less, Read MoreIntroduction Most JavaScript codebases are full of code like this: const user = { name: "Sara", age: 28, city: "Mumbai" }; const name = user.name; const age = user.age; const city = user.city; Three 00