Currently available · INDIA

/ Index — Writing

The archive.

Total essays

25

Topics

06

Field notes, essays, and tutorials on engineering, design-engineering, and the slow work of making software last. Newest first.

System Design025

The Shipping Email Went Out Twice.

order-9912 shipped once. The customer got two emails. The second one was the same fact, delivered again.

Oct 15, 2026·2 min read
0
Algorithms024

The Urgent Shipment Waited Behind Ordinary Orders.

order-8841 had to leave today. The line shipped two ordinary orders first because they had been waiting longer.

Oct 13, 2026·2 min read
0
Distributed Systems023

The Pile Drained. order-9912 Was Reserved Twice.

Lag hit zero. Packing still paged. Inventory had reserved the same order twice.

Oct 10, 2026·5 min read
0
Algorithms022

One Cycle, and the Same Order Never Finished.

Packing’s next step pointed back at the order it was already in. The walk never reached a last step.

Oct 06, 2026·2 min read
0
Distributed Systems021

The Deploy Paused Inventory. Orders Piled Up.

Inventory went green. Checkout never stopped. Two hundred orders were already in the log, and nobody had read them.

Oct 01, 2026·4 min read
0
Algorithms020

DFS Found a Path. It Was the Long One.

Inventory’s route to shipping is three hops. Notify’s is two. The search that dives deep still says it found shipping — and hands you the slow path.

Sep 29, 2026·7 min read
0
System Design019

URL Shortener Design — When One Link Goes Viral

One tracking link gets shared a million times. Design the two APIs — and the cache — so the redirect holds when a single code is on fire.

Sep 24, 2026·7 min read
0
Distributed Systems018

Kafka Consumer Groups & Replay

Two teams read the same OrderPlaced events without stealing — then reset an offset and fix a bad stock reservation from the log.

Sep 17, 2026·7 min read
0
Distributed Systems017

Your First Kafka Producer and Consumer

Docker up, one topic, one OrderPlaced message — produce, consume, then watch the log survive when the consumer is down.

Sep 10, 2026·6 min read
0
Algorithms016

Binary Trees & BSTs — Complete Guide with Interactive Walkthroughs

Binary trees, BST search and insert, DFS vs BFS, inorder, validate, and LCA — with step-through animations and a practice ladder.

Sep 08, 2026·8 min read
0
Distributed Systems015

Kafka Core Vocabulary — Broker, Topic, Partition, Offset

Follow one OrderPlaced event from write to read — broker, topic, partition, and offset in plain English, with interactives.

Sep 01, 2026·5 min read
0
Distributed Systems014

Why Kafka Exists

What problem Kafka solves — durable logs, decoupled services, and replay — and when a simple HTTP call is still the right answer.

Aug 29, 2026·5 min read
0
Languages013

Why Go Doesn't Have While Loops

if, switch, for, break, continue, labels, and defer — and why Go replaced while, do-while, and foreach with a single loop word.

Aug 13, 2026·4 min read
0
Languages012

Why Go Doesn't Let Variables Stay Uninitialized

Variables, types, constants, zero values, and := — explained simply. Why every Go variable starts with a real value, and how that stops a whole class of bugs.

Aug 09, 2026·4 min read
0
Languages011

Why Google Invented Go Instead of Improving C++

A case study of the problems that created Go — compile time, dependency hell, memory safety, concurrency, and why Go intentionally left features out.

Aug 07, 2026·5 min read
0
Languages010

Why Simple Code Beats Clever Code

The Go philosophy — readability, explicit code, zero values, composition, and small interfaces — and why boring code often scales better than smart code.

Aug 07, 2026·3 min read
0
Algorithms009

Stacks & Queues — Complete Guide with Interactive Walkthroughs

Master LIFO stacks, FIFO queues, and monotonic deques — parentheses matching, adjacent duplicates, recent calls, daily temperatures, and sliding window maximum. Animations included.

Aug 06, 2026·10 min read
0
Algorithms008

Linked Lists — Complete Guide with Interactive Walkthroughs

Master linked list mechanics, fast and slow pointers, and in-place reversal — insert/delete, cycle detection, k-th from end, and swap pairs without cheating into an array. Animations included.

Jul 22, 2026·10 min read
0
Algorithms007

Binary Search — Complete Guide with Interactive Walkthroughs

Master binary search on sorted arrays and answer spaces — classic templates, lower/upper bounds, 2D matrix tricks, and O(n log k) feasibility checks. Animations included.

Jul 08, 2026·12 min read
0
Algorithms006

Hashing — Complete Guide with Interactive Walkthroughs

Master hash maps and sets for O(1) lookups — existence checks, frequency counting, prefix + frequency patterns, and grouping. The most important data structure in interview prep. Animations included.

Jul 05, 2026·14 min read
0
Algorithms005

Prefix Sum — Complete Guide with Interactive Walkthroughs

Master prefix sums for O(1) subarray range queries — build the array, answer queries in constant time, split arrays in one pass, and optimize to O(1) space. Step-through animations included.

Jun 28, 2026·12 min read
0
Algorithms004

Two Pointers — Complete Guide with Interactive Walkthroughs

Master the two pointers technique for arrays and strings — opposite ends, merge walk, palindrome checks, two sum on sorted input, and subsequence matching. Step-through animations included.

Jun 26, 2025·8 min read
0
Algorithms003

Sliding Window Technique — Complete Reference with Animations

A friendly, step-by-step guide to sliding windows — from your first two-pointer problem to monotonic deques, production rate limiters, and the at-most-K trick. Interactive animations included.

Jun 25, 2025·20 min read
0
Git002

Is Git Confusing? A Git Crash Course to Get You Started!

An interactive Git crash course — step-through animations for daily workflows, branching strategies you can play through, and a scenario picker for everyday situations.

Dec 21, 2024·5 min read
0
JavaScript001

JavaScript Variables and Data Types

const, let, typeof, primitives, null vs undefined — the parts of JavaScript that show up in every file, explained without the textbook tone.

Jul 10, 2019·4 min read
0

/ Stay in the loop

Get the next one in
your inbox.

New essays and field notes sent only when there's something worth sending. No tracking, no spam, easy unsubscribe.

Join · No spam · One-click unsubscribe