shrey@saroch ~ % ls posts
Writing
Notes on JavaScript, frontend, and performance.
Jun 25, 2026·8 min read
useMemo is not free: a field guide to React re-renders
What actually triggers a re-render, when memoization helps versus hurts, and how to measure instead of guess — from a large-app perspective.
#react#javascript#performance
Jun 22, 2026·6 min read
Debounce & throttle: build them, don't import them
Implement both from scratch, understand the precise difference, and know which one a given problem actually needs.
#javascript#performance
Jun 15, 2026·6 min read
The JavaScript event loop, finally explained
Call stack, task queue, and microtasks — why setTimeout(…, 0) isn't instant and how Promises jump the line, with runnable examples.
#javascript
Jun 8, 2026·6 min read
I built a playable terminal with almost no JavaScript
How the homepage of this site works — CSS-driven terminal chrome, a tiny pure-function command parser, and keeping it accessible.
#css#javascript#frontend