The Observer Pattern and Exception Handling
Observers are a useful mechanism of composition to set up event flows. They are designed for ‘fan out’ communication, in which multiple objects are notified when a single object changes. Many languages have implementations of the observer pattern. Ruby, for example, has a module Observable that implements the pattern
Post a comment