// pocket-sized · plain English · JavaScript

Your app worked at 50 users.
It died at 5,000.
This is why.

The Self-Taught Developer's Guide to Big O Notation explains why apps get slow in plain English and JavaScript — for self-taught developers and vibe coders who learned by shipping.

// 4"×6" — actually fits in a pocket. Under 100 pages, zero filler.

SHIPS WORLDWIDE Book cover: The Self-Taught Developer's Guide to Big O Notation by Robert M. Cavezza
// what's inside

Four things. That's the whole book. On purpose.

01 / containers

The Containers

Arrays, objects, maps, sets — what they're actually doing under the hood, and when each one saves you.

02 / speeds

The Speeds

O(1) to O(n!), each with a nickname you'll actually remember when it matters.

03 / recipes

The Recipes

Searching, sorting, hashing, memoization, and more — the patterns behind every fast program.

04 / fixes

The Fixes

Five changes that solve 90% of slow code. Find your bottleneck, apply, ship.

// a taste — the speeds

Nicknames you'll actually remember

notationnicknamethe vibe
O(1)The Vending MachineSame speed at 10 items or 10 million.
O(log n)The HalvingCuts the problem in half every step.
O(n)The Roll CallTwice the data, twice the wait. Fair enough.
O(n log n)The Sorting TaxAs good as sorting honestly gets.
O(n²)The Handshake ProblemEveryone greets everyone. Fine at a dinner party, fatal at a stadium.
O(2ⁿ)The Doubling MonsterOne more item, double the work.
O(n!)The Seating Chart NightmareThe universe ends before your function returns.
"Big O is a map of where cliffs are. You still have to look where you're walking."
// the author

Why this book exists

I'm Robert M. Cavezza. Most people call me Bobby. I learned to code the way a lot of us do: by shipping things, Googling the rest, and quietly wondering whether I was a real developer or just someone who hadn't been found out yet.

That feeling stuck around long enough that I eventually went back to grad school at Harvard to learn the things I'd been faking. CS fundamentals. Algorithms. The stuff I'd nodded along to in conversations for years.

Page 31 of this book is about O(log n). For a long time, logarithms felt like the part of math that existed to make things harder than they needed to be. Then one day it clicked: it's just halving. Every step cuts the problem in two. That's it. That's the whole thing.

That moment of realizing a scary-looking concept had a dead-simple mental model hiding inside it is why this book exists. If O(log n) can be "the Halving," then all of it can be understood. Not just by CS grads. By everyone.

// free resource

Want the free Big O cheat sheet?

Get the speed ladder, JS method costs, and slow-app checklist in one printable page.

Get the cheat sheet