« Design Patterns | Main | 3D Printer Tutorial (Lablog5-12-05) »
May 11, 2005
The Observer Pattern
Today's chapter in the Design Patterns book is about the observer pattern.
The Observer Pattern defines a one-to-many dependency between object so that when one object changes state, all of its dependents are notified and updated automatically.
This pattern seems a lot more straightforward than the strategy pattern. I think we are likely to use this pattern when we need to report back on the state of an actuator. It will only be helpful if it is a one-to-many relationship otherwise just simple callback functions will suffice. There may be other design patterns that make more sense here.
Posted by michelle at May 11, 2005 09:26 PM









