Strategy for injecting behaviour (lambda strategies in Java 8+), Observer with memory leak traps (weak references), Command for undo/redo, Template Method's Hollywood Principle, Chain of Responsibility as Servlet filters, State for replacing conditionals, Visitor's double dispatch, and the full anti-pattern gallery.
// Lessons
- 01soon
Strategy — Injecting Behaviour Instead of Subclassing
- 02soon
Strategy — Lambda Strategies in Java 8+
- 03soon
Observer — Push vs Pull, Event Systems and Memory Leaks
- 04soon
Observer — The Memory Leak Trap and Weak Reference Fix
- 05soon
Command — Encapsulating Operations for Undo/Redo
- 06soon
Template Method — The Hollywood Principle
- 07soon
Chain of Responsibility — Servlet Filters and Spring Interceptors
- 08soon
State — Replacing Conditional Logic with Polymorphism
- 09soon
Visitor — Double Dispatch and Adding Operations Without Subclassing
- 10soon
Anti-Patterns — God Object, Anemic Domain Model, Primitive Obsession