liveBook · Manning

Indirection

Indirection is a technique in which access to a target occurs through an intermediate reference, abstraction, or layer rather than directly.

How 2 Manning books explain it

Unit Testing Principles, Practices, and Patterns

An intermediate abstraction layer that separates a caller from the concrete implementation or solution it ultimately needs.

How it is used
Separates domain logic, application coordination, and infrastructure while supporting clearer unit and integration testing boundaries.
How deep it goes
Contrasts useful boundaries with excessive layers and demonstrates callback removal, stopping short of implementation-level mechanics.
Examples
Uses checkout and report services, callback refactoring, and a three-layer backend architecture.
What you can do after
Evaluate and simplify abstractions by preserving useful boundaries, reducing layer count, and replacing circular callbacks with returned values.

Read how Unit Testing Principles, Practices, and Patterns explains indirection →

Build High Value Software Systems

An additional layer of reference or mediation through which software accesses an object, operation, or dependency.

How it is used
Identifies added structure as waste when it exceeds current needs, including unrequested abstractions in generated code.
How deep it goes
Contrasts simple and overprocessed code, explains costs, and offers diagnostic questions without developing implementation internals.
Examples
Shows an order service with unrequested features and configurable username validation where a direct rule suffices.
What you can do after
Evaluate whether added structure addresses observed variability or imposes costs without solving a current problem.

Read how Build High Value Software Systems explains indirection →

Also covered in

What to know first

Related concepts

Questions about indirection

What is indirection?

Indirection is a technique in which access to a target occurs through an intermediate reference, abstraction, or layer rather than directly.

Which Manning books explain indirection?

Unit Testing Principles, Practices, and Patterns and Build High Value Software Systems.

What should I know before learning indirection?

Manning books that teach indirection usually introduce controller, data structure and file type first.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.