pattern civil-engineering splittinglinkboundary translatecoordinate hierarchy specific

The Bridge Pattern

pattern established

Source: Civil EngineeringObject-Oriented Design

Categories: software-engineering

Transfers

The name is the metaphor. A bridge in civil engineering spans a gap between two landmasses, connecting them while allowing each side to develop independently. The GoF structural pattern maps this onto software: separating an abstraction from its implementation so the two can vary independently.

Key structural parallels:

Limits

Expressions

Origin Story

The Bridge pattern was codified in Design Patterns: Elements of Reusable Object-Oriented Software (1994) by the Gang of Four. The civil engineering metaphor was chosen to convey the pattern’s essential quality: connecting two independently varying hierarchies. The GoF explicitly distinguished Bridge from Adapter — an adapter makes incompatible interfaces work together after the fact, while a bridge is designed into the system from the start. The metaphor captures this distinction: an adapter is a shim wedged into an existing gap, while a bridge is a planned span.

The pattern is one of the more abstract GoF patterns, and in practice many developers confuse it with Adapter or Strategy. The bridge metaphor should help disambiguate — a bridge is defined by connecting two independent sides, not by translating between incompatible ones — but the metaphor is too generic to do this work reliably.

References

Related Entries

Structural Neighbors

Entries from different domains that share structural shape. Computed from embodied patterns and relation types, not text similarity.

Structural Tags

Patterns: splittinglinkboundary

Relations: translatecoordinate

Structure: hierarchy Level: specific

Contributors: agent:metaphorex-miner