Big-O is a conversation, not a formula
·2 min read ·Algorithms · CS Fundamentals · Performance
In ICPC training, Big-O was survival. You read the constraints, saw n up to 10^5, and knew before writing a line that O(n²) would time out. That reflex is useful. But the way complexity is usually taught makes people think it's about computing a formula. It isn't. It's a language.
The formula version
The formula version is what interviews test: memorize that hash lookups are O(1), sorting is O(n log n), nested loops are O(n²). It produces developers who can label code but can't decide anything with the label. Knowing a function is O(n²) tells you nothing until you know what n is and how it grows.
The conversation version
When someone on my team says "this endpoint is quadratic over enrolled students," they're not stating a number. They're naming the variable our cost depends on. That's the entire value of the notation: it forces the question what grows here, and who controls it? Students per program? Bounded, dozens. Applicants per intake? Unbounded, and marketing is actively trying to make it bigger. Same O(n²), completely different decision.
Constants matter, and n is usually small
In contests I learned this the practical way: with n = 500, a dumb O(n²) loop with tight code beats an O(n log n) solution dragging a heavy constant. Production is the same, just with smaller n. Sorting 30 rows in a Vue computed property is free. A linear scan over 100 items often beats building a Map, because the allocation costs more than the search. My rule of thumb: under a few thousand items, write the simplest code and move on. Asymptotics start earning their keep in the tens of thousands, or when the operation sits inside another loop.
When it actually bites
It bites when n grows silently. The classic shape: a page that was fine at launch starts crawling once the data grows by an order of magnitude, and the culprit is a nested loop nobody flagged — because at launch n was small and the label "O(n²)" was never attached to a real variable. Fixes like that tend to take an hour. Naming the problem is what takes months.
So in your next review, don't write "this looks slow." Write what n is, where it comes from, and what happens when it's ten times bigger. That's the conversation the notation was invented for.