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.

609c52819f220e49667a53cc0a82bfa7?s=128

Shawn Moore

October 23, 2011
Tweet