Skip to main content

Eidos

Creational Patterns​

Abstract FactoryAbstract FactoryπŸ’ŽCreate families of related objects without specifying concrete classesExplanationsLive Demo1
BuilderBuilderπŸ‘‘Step-by-step construction of complex objectsExplanationsLive Demo2
Factory MethodFactory MethodDelegate object creation to subclasses or functionsExplanationsLive Demo1

Structural Patterns​

AdapterAdapterπŸ’ŽAdapt function signatures with input/output mappersExplanationsLive Demo2
BridgeBridgeDecouple abstraction from implementationExplanationsLive Demo2
CompositeCompositeπŸ’ŽTree structures with uniform leaf/branch handlingExplanationsLive Demo6
DecoratorDecoratorπŸ‘‘Before/after/around hooks for functionsExplanationsLive Demo4
FacadeFacadeSimplified interface to a complex subsystemExplanationsLive Demo1
ProxyProxyLazy init, caching, rate-limiting, access controlExplanationsLive Demo2

Behavioral Patterns​

Chain of ResponsibilityChain of ResponsibilityπŸ‘‘Pipeline of handlers that can pass or handle requestsExplanationsLive Demo2
CommandCommandπŸ‘‘Encapsulate actions with undo/redo supportExplanationsLive Demo5
InterpreterInterpreterEvaluate expressions or DSLsExplanationsLive Demo1
IteratorIteratorπŸ’ŽTraverse collections without exposing internalsExplanationsLive Demo8
MediatorMediatorπŸ’ŽCentralize communication between componentsExplanationsLive Demo1
MementoMementoπŸ’ŽCapture and restore object state (snapshots)ExplanationsLive Demo1
ObserverObserverπŸ‘‘Pub/sub event emitter with safe notificationExplanationsLive Demo1
StateStateπŸ‘‘Object behavior changes based on internal stateExplanationsLive Demo1
StrategyStrategyπŸ‘‘Swap algorithms at runtimeExplanationsLive Demo4
Template MethodTemplate MethodπŸ’ŽDefine skeleton algorithm, let subclasses fill stepsExplanationsLive Demo2
VisitorVisitorAdd operations to objects without modifying themExplanationsLive Demo1