Tuesday, November 24, 2026
Explainer

The hidden costs of software abstraction: when layers help and when they hurt

Every layer that hides complexity also hides problems. The trick is knowing what's underneath when something goes wrong.

A monitor and laptop showing code

Abstraction is how software gets built at all. Frameworks hide HTTP handling, ORMs hide SQL, cloud services hide servers, and low-code tools hide most of the code. Each layer lets a team do more with less effort.

In 2002, Joel Spolsky described the catch in an essay titled "The Law of Leaky Abstractions": all non-trivial abstractions, to some degree, are leaky. The layer works until something underneath breaks through, and then the team needs to understand what the layer was hiding.

Where it hurts

Abstraction What it hides How it leaks
ORMs The SQL being run One page load triggers hundreds of queries; slow pages nobody can explain
Serverless and managed services Servers, scaling, networking Cold starts, timeouts, and bills that grow with traffic in unexpected ways
Frameworks and libraries Large amounts of third-party code Vulnerabilities in dependencies you didn't know you had
Low-code platforms Logic, data model and hosting Hard to test, version or move; licensing lock-in
AI-generated code The reasoning behind the code Code that works in tests but nobody on the team fully understands

Security sits underneath

The 2025 OWASP Top 10 ranks Software Supply Chain Failures third among web application risks. Abstractions are a big reason: a modern application pulls in hundreds of packages, each a layer the team didn't write. The same goes for default configuration in frameworks and cloud services, where Security Misconfiguration ranks second.

Cost sits underneath too

Cloud services that scale automatically make it easy to build something that costs ten times what was expected at real traffic. The abstraction removes the server, not the bill.

Keeping layers under control

Use abstractions, but keep the ability to look beneath them. Turn on query logging for ORMs during development. Track dependencies with a software bill of materials. Set budgets and alerts on usage-based services. Require that someone on the team can explain any generated code before it merges. And when choosing a low-code or managed platform, check how data and logic can be exported if you need to leave.

What IT teams should do

  • Log database queries per request in development and flag pages above a set count.
  • Generate an SBOM for each application and review new dependencies.
  • Set cost alerts on every usage-priced cloud service.
  • Add "can the author explain it?" to code review for AI-generated changes.

Sources