Design Patterns Vocabulary
5 exercises — practise the English vocabulary engineers use when discussing GoF design patterns: creational pattern distinctions, observer vs. pub/sub, decorator wrapping, facade simplification, and the adapter vs. bridge distinction.
Design patterns quick reference
- Abstract Factory: interface for creating families of related objects — products guaranteed compatible
- Factory Method: lets a subclass decide which class to instantiate — one product at a time
- Decorator: wraps an object to add behaviour before/after delegation — same interface as wrapped
- Facade: simplified interface over a complex subsystem — hides multiple classes behind one entry point
- Adapter: converts an incompatible interface — applied retroactively
- Bridge: decouples abstraction from implementation — designed upfront for independent variation
- Observer: subject holds direct observer references, synchronous notification
- Pub/Sub: broker decouples publisher from subscriber entirely, asynchronous
Question 1 of