Tag: oop
All the articles with the tag "oop".
Design Patterns Part 8 — Singleton, Iterator, Prototype: Frequently Used but Often Misunderstood
The intent and anti-pattern debate around Singleton, Iterator's standardization of traversal, Prototype's cloning strategies. A look at three patterns...
Design Patterns Part 7 — Adapter, Facade, Composite: Patterns for Organizing Structure
Adapter bridges incompatible interfaces, Facade wraps complex subsystems, Composite represents tree structures. A look at how these three patterns...
Design Patterns Part 6 — Decorator and Proxy
Decorator extends functionality without inheritance, Proxy takes charge of access control and lazy loading. A code-driven comparison of two patterns...
Design Patterns Part 5 — Factory Method, Abstract Factory, Builder
How Factory Method, Abstract Factory, and Builder each solve the coupling problem that arises from using new directly, compared with code examples.
Design Patterns Part 4 — Template Method and Chain of Responsibility
Template Method fixes the algorithm skeleton and lets subclasses fill in the details. Chain of Responsibility passes requests along a handler chain....
Design Patterns Part 3 — Observer and Command
Observer notifies of state changes, Command encapsulates requests as objects. A code-driven comparison of two patterns at the heart of event-driven design.
Design Patterns Part 2 — Strategy and State
Two ways to swap behavior. Strategy swaps algorithms, State changes behavior based on state. A comparison of two patterns that share the same structure...
Design Patterns Part 1 — Why Learn Patterns
An overview of the GoF 23-pattern taxonomy, how to read a pattern, and when to use or avoid them. The starting point of the design patterns series.
OOP Design Principles Part 5 — Composition over Inheritance
Exploring GoF's advice to favor composition over inheritance. We cover what inheritance breaks, how to achieve the same functionality with composition,...








