All posts

Everything I've shipped, broken, and written down.

Filter by category, or just scroll — every post is a real bug, a real formula, or a real architecture decision.

DSA

Binary search: the off-by-one that cost me three hours

Why lo <= hi isn't a convention — tracing the exact moment my search space collapsed wrong.

System design

Sync architecture for an offline-first kirana app

13 Room entities, one conflict resolution strategy, and why last-write-wins almost broke inventory.

Error fix

Fixing "act(...) wraps test-utils" in React Router v6

The exact testing-library setup that makes this warning disappear, with the why behind it.