← All articles

The Mirage of Speed: Why Architecture Accelerates and Tools Just “Type” Faster

7 min readtechnical-debtsoftware-architecturesoftware-designprogrammingsoftware-engineering

Machine-translated from Spanish. Read the original

ByFederico Sawady O'ConnorRagnagrok Academy

There's a magical scene that plays out all the time in the software industry, where some tool generates scaffolding, autocompletes entire functions, deploys with a single click. The demo lasts three minutes. Everyone applauds. Months later, the project is bogged down in exactly the same old problems — except now it has more and more files that aim to solve something, if poorly.

What happened? We confused producing code with making progress.

The output-speed trap

The software industry has an obsession it rarely examines, output speed. Lines per hour. Features per sprint. Deploys per day. Everything is measured in volume and frequency. But this metric has an obvious problem, which is that running in the wrong direction only gets you farther from the goal, faster.

The speed that matters is a different one. It's the time between conceiving an idea and having it running stably in production. And, counterintuitively, that speed doesn't depend on how fast you type, but on how many unnecessary problems you avoid creating along the way.

Put another way, a project's top speed isn't determined by the engine; it's determined by the brakes and the steering wheel.

Accidental and essential, the distinction nobody wants to make

In 1986, Fred Brooks published No Silver Bullet, an essay that remains uncomfortably relevant. Its central thesis distinguishes two kinds of complexity in software.

On one hand, accidental complexity is everything that surrounds the problem but isn't the problem, such as configuration, verbose syntax, boilerplate, library integration or CI/CD pipelines. It's the background noise of development.

And on the other hand we have essential complexity, which represents the business problem itself (the rules, the valid states, the invariants the system must respect, and so on).

The distinction seems obvious. But in practice, we confuse the two constantly. And we confuse them because the tools with the most visibility in the industry attack accidental complexity almost exclusively, and they do it spectacularly (above all in marketing terms).

A code generator (even an AI one) that creates 20 boilerplate files in a second feels fast. But what it actually did was hand you 20 files that now have to be maintained, tested and — most costly of all — understood. It didn't solve your business problem; it just furnished the room before you'd decided whether the house has solid foundations.

The fastest code is the code that doesn't exist

Here's the shift in perspective I'm proposing. Picture two developers working on the same billing system.

The first uses AI to generate a 100-line validation function in two seconds. The function checks that the amount isn't negative, that the date is in the correct range, that the customer exists, that the invoice's state allows the operation. It works. It gets committed. Off to production.

The second, by contrast, stops and models the domain with types. They define MontoPositivo (PositiveAmount) as a type that cannot hold a negative value, because the only way to build one is a function that validates the amount once, at the edge of the system. They define an invoice's states as a discriminated union (Borrador | Emitida | Pagada | Anulada, or Draft | Issued | Paid | Voided), where the valid transitions are the only functions that exist. There's no 100-line validation function, because invalid states can't be built. What depends on the world, like whether the customer exists, is still checked at runtime, but in one place.

The first was “faster” on the output metric. The second eliminated an entire category of bugs the first will be chasing for months. So it's worth asking who was faster on the metric that matters.

This isn't theory. It's the difference between writing, in 2 seconds, 100 lines that check the business rules by hand and designing a model that states them in the types, so most of those lines are no longer needed. In the second case, you gained infinite speed on that block, because the future maintenance of code that doesn't exist is zero.

Correction (November 25, 2026). The first version called those 100 lines "accidental code" and said MontoPositivo isn't validated at runtime. The rules they check are essential complexity, by the definition in the previous section, and types don't erase them, they state them in one place. MontoPositivo needs a constructor that validates at the edge, and whether the customer exists is still checked at runtime. I found it in a review of the series, and the conclusion holds with a narrower scope.

Three concrete mirages (and their antidotes)

And this is where it's worth presenting three mirages that come up very often in the industry.

Generative AI tools are impressive at reducing accidental complexity. They generate boilerplate, turn pseudocode into implementations, suggest well-known patterns. But they don't design architecture, and in a poorly designed codebase, they only speed up the production of technical debt.

The antidote isn't to reject these tools — it's to invert the order. What matters first is the model. Define the types, the contracts, the boundaries of the domain. Then let AI help you with the wiring between pieces that already have the right shape. AI as a fast bricklayer is useful. AI as an improvised architect is dangerous.

Mirage 2. “Kubernetes gives us scalability”

Deploying 20 microservices on Kubernetes for a system that serves 500 users introduces network complexity, eventual consistency problems, distributed transactions and a debugging curve that would multiply any team's suffering. All “because it's scalable.”

The antidote is a well-modularized monolith where the Bounded Contexts are clear. The modules have defined interfaces and can be extracted into independent services the day it's actually needed. The speed comes from not having to deal with network latency or compensating sagas for operations that, in a monolith, would be a single database transaction.

Mirage 3. “We add tests for everything, so we're safe”

Exhaustively testing a badly designed model is like putting more locks on a door that opens onto a wall. If your model allows invalid states, you'll need thousands of tests to cover the combinations. If your model eliminates them by construction, the tests focus on what matters, which is the business logic.

The antidote is to design first so that invalid states are unrepresentable. The tests that survive are the ones that verify behavior, not the ones that compensate for weaknesses in the model.

Architecture as a braking system

There's an analogy I find unavoidable. In car racing, brakes don't exist to make you go slower — they exist so you can take the corners at higher speed without leaving the track. A car without brakes isn't fast; it's uncontrollable.

Architecture and design serve exactly that function in software. They aren't “expenses” that delay development. They're the constraints that let you accelerate with confidence. A well-modeled system lets you add features without fear, refactor without praying and deploy without drama.

So how do you invert the priority?

It's not about rejecting the tools, or about designing for six months before writing a line of code. It's about changing the order in which we tackle problems.

First, simplify the model. Before touching the keyboard (even to prompt), it's worth asking whether this design allows states that shouldn't exist and whether the space of possibilities can be shrunk. Every invalid state you eliminate by design is a bug you'll never have to debug.

Next, delegate verification to the machine. Use strong types, contracts, invariants. If the compiler can find the error, don't go hunting for it yourself at 3 a.m. with a debugger or in logs you scattered all over the code just in case.

Finally, automate the accidental. Now go ahead, generate the boilerplate, use scaffolding, let AI help you with the wiring. But do it on top of a structure that has already solved the essential.

The next time someone shows you a tool that “writes code 10 times faster,” it's worth asking toward what it's going 10 times faster. Because speed without direction has another name, and that name is waste.

Support the blog

If this article was useful to you, you can sponsor the blog on GitHub. It helps me keep writing.