Ripasso: Design Patterns
09 — Pattern comportamentali
Il problema è chi gestisce una richiesta? → Chain of Responsibility, Mediator.
Il problema è rappresentare un'azione come dato? → Command.
Il problema è come scorrere una struttura? → Iterator.
Il problema è salvare e ripristinare? → Memento.
Il problema è notificare cambiamenti? → Observer.
Il problema è comportamento che dipende dallo stato? → State.
Il problema è scegliere un algoritmo? → Strategy.
Il problema è uno scheletro fisso con passi variabili? → Template Method.
Il problema è nuove operazioni su tipi stabili? → Visitor (o switch su sealed).
---