Adapter Pattern
The Adapter pattern is a structural design pattern that converts the interface of one class into another interface that clients expect, allowing otherwise incompatible classes to work together.
11 resources across 4 libraries
Glossary Terms(2)
Decorator Pattern
The Decorator pattern is a structural design pattern that attaches additional responsibilities to an object dynamically by wrapping it in one or more decorator…
Adapter Pattern
The Adapter pattern is a structural design pattern that converts the interface of one class into another interface that clients expect, allowing otherwise inco…
Study Notes(1)
Cheat Sheets(1)
Interview Questions(7)
How Would You Implement a Stack Using Queues?
A stack (LIFO) can be built from one or two FIFO queues by rotating the queue after every push so the newest element sits at the front, which makes push O(n) a…
How Would You Implement a Queue Using Stacks?
A queue (FIFO) can be built from two stacks: an 'in' stack absorbs every enqueue in O(1), and an 'out' stack is refilled by popping everything off 'in' and pus…
What is the Adapter Pattern?
The Adapter pattern is a structural design pattern that converts the interface of an existing class into another interface a client expects, letting otherwise…
Facade vs Adapter Pattern
A Facade pattern provides a single, simplified interface over a complex subsystem of multiple classes, while an Adapter pattern converts one existing interface…
Adapter vs Bridge Pattern
The Adapter pattern converts an existing incompatible interface into one a client expects, applied after the fact to make unrelated classes work together, whil…
What is an Anti-Corruption Layer?
An anti-corruption layer is a translation boundary placed between two systems with different domain models, so that a service’s internal model stays clean and…
What are Multi-Container Pod Design Patterns?
The three main multi-container Pod patterns are sidecar, ambassador, and adapter — each places a helper container alongside a main application container inside…