Skip to main content

Observer Pattern Implementor

Design PatternsDesign Patterns

Implement the Observer pattern to establish one-to-many dependencies where changing one object automatically notifies and updates all dependents. Use when a spreadsheet model needs to update multiple chart views, when UI components must react to data changes, when event systems need publish-subscribe, or when you need to decouple a subject from an unknown number of observers. Handles 10 implementation concerns including push vs pull models, dangling reference prevention, update cascade avoidance, and the ChangeManager compound pattern.

Install

1. Add marketplace
/plugin marketplace add bookforge-ai/bookforge-skills
2. Install plugin
/plugin install design-patterns-gof@bookforge-skills
3. Use the skill
/observer-pattern-implementor
CC-BY-SA · Open sourceGitHub

What You'll Need

TodoWriteReadWriteGrep (optional)Glob (optional)

Source Book

Design Patterns cover

Design Patterns

Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides