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.
Arrays, objects, maps, sets — what they're actually doing under the hood, and when each one saves you.
O(1) to O(n!), each with a nickname you'll actually remember when it matters.
Searching, sorting, hashing, memoization, and more — the patterns behind every fast program.
Five changes that solve 90% of slow code. Find your bottleneck, apply, ship.
| notation | nickname | the vibe |
|---|---|---|
| O(1) | The Vending Machine | Same speed at 10 items or 10 million. |
| O(log n) | The Halving | Cuts the problem in half every step. |
| O(n) | The Roll Call | Twice the data, twice the wait. Fair enough. |
| O(n log n) | The Sorting Tax | As good as sorting honestly gets. |
| O(n²) | The Handshake Problem | Everyone greets everyone. Fine at a dinner party, fatal at a stadium. |
| O(2ⁿ) | The Doubling Monster | One more item, double the work. |
| O(n!) | The Seating Chart Nightmare | The universe ends before your function returns. |
"Big O is a map of where cliffs are. You still have to look where you're walking."
Get the speed ladder, JS method costs, and slow-app checklist in one printable page.
Get the cheat sheet