Announcing Announcements

Announcing Announcements

Say you're writing a system that uses the observer design pattern. What happens if instead of passing around the NAME of an event, you pass around an OBJECT representing the event? Turns out, a whole lot of goodness!

Announcements enable communication from the observer to the observed, and even communication (and conspiracy) amongst observers themselves.

All with a very strongly object-oriented, antler-shaped flavor.


Shawn Moore

October 23, 2011