Separation of concerns
medium 32 minGive each question a program must answer its own place, and let the places meet through small openings.
Watch lesson4:04
Where it shows up
The same pattern appears across everyday software.
Internet protocols
RFC 1122 describes link, IP and transport layers. IP moves packets and leaves reliable delivery to TCP, so one can be studied without the other.
LLVM
The classic three-phase compiler: front end, optimizer, back end. A common code form between them lets many languages and many machines share one optimizer.
SQLite
SQL text is compiled to bytecode, a virtual machine runs it, the pager handles pages, and an operating system interface sits below.
Git
The manual separates plumbing, the low-level commands, from porcelain, the commands for people.
Django middleware
Each middleware wraps the view like a layer of an onion, in the order of a list in the settings.
Spring AOP
Aspects hold concerns that cut across classes. The manual names transaction management as an example.
Envoy
A separate process beside each service handles network concerns, so the services can be in any language.
OpenTelemetry
Zero-code instrumentation adds traces to an application without edits of its source.
Android guide
Google's app architecture guide calls separation of concerns the most important principle and keeps user interface and data layers apart.