/
glossary
Search
⌘K
7
Codex
44 terms. Every concept used in LLD and design patterns.
A
B
C
D
E
F
I
L
M
N
O
P
R
S
T
V
A
Abstraction
Showing only what matters, hiding how it...
Aggregation
An object uses another object, but the u...
Adapter
(Wrapper)
A wrapper that makes one interface look ...
Abstract Factory
(Kit)
A factory of factories — creates groups ...
B
Builder
Build a complex object step by step....
Bridge
Split 'what it does' from 'how it does i...
C
Composition
An object owns another object — if the o...
Command
(Action)
Wrap a request as an object so you can q...
Chain of Responsibility
(CoR, Middleware)
A pipeline of handlers — each gets a tur...
Composite
Trees of objects where a group behaves l...
Cohesion
How focused a class is — high cohesion m...
Coupling
How tangled two classes are — less is be...
Circuit Breaker
Stop calling a broken service and fail f...
D
Dependency Injection
(DI)
Give an object its tools instead of lett...
Decorator
(Wrapper)
Wrap an object to add extra behavior wit...
DIP
(Dependency Inversion Principle)
Depend on interfaces, not on concrete cl...
Delegation
Instead of doing it yourself, ask anothe...
E
Encapsulation
(information hiding)
Hiding the insides of an object so only ...
Event Bus
(Message Bus)
A shared channel where any component can...
F
Factory Method
A method that lets subclasses choose whi...
Facade
A simple front door to a complex system....
Flyweight
Reuse shared data across many similar ob...
I
Inheritance
(subclassing)
A child class gets everything from a par...
Interface
(contract)
A list of method signatures a class prom...
Iterator
(Cursor)
Traverse a collection without knowing it...
ISP
(Interface Segregation Principle)
Keep interfaces small and focused....
IoC
(Inversion of Control, Hollywood Principle)
Don't call us, we'll call you....
L
LSP
(Liskov Substitution Principle)
A child class must work anywhere its par...
M
Mediator
(Controller)
A central hub that coordinates communica...
Memento
(Snapshot)
Save and restore an object's state — lik...
N
Null Object
(Stub)
A do-nothing stand-in that avoids null c...
O
Observer
(Pub-Sub)
When something changes, everyone watchin...
OCP
(Open-Closed Principle)
Add new behavior without changing existi...
P
Polymorphism
Same method name, different behavior dep...
Proxy
(Surrogate)
A stand-in that controls access to the r...
Prototype
(Clone)
Clone an existing object instead of buil...
R
Repository
(DAO)
A class that hides database details behi...
S
SRP
(Single Responsibility Principle)
One class, one job....
Strategy
(Policy)
Swap algorithms at runtime by injecting ...
State
An object behaves differently depending ...
Singleton
Only one instance exists in the entire a...
SOLID
Five rules that make OOP code flexible a...
T
Template Method
Fixed algorithm steps; subclasses fill i...
V
Visitor
Add new operations to a class hierarchy ...