Skip to main content

Eidos

Creational Patterns​

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

Structural Patterns​

AdapterAdapterπŸ’Ž2Adapt function signatures with input/output mappersExplanationsLive Demo
BridgeBridge2Decouple abstraction from implementationExplanationsLive Demo
CompositeCompositeπŸ’Ž6Tree structures with uniform leaf/branch handlingExplanationsLive Demo
DecoratorDecoratorπŸ‘‘4Before/after/around hooks for functionsExplanationsLive Demo
FacadeFacade1Simplified interface to a complex subsystemExplanationsLive Demo
ProxyProxy2Lazy init, caching, rate-limiting, access controlExplanationsLive Demo

Behavioral Patterns​

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