Post a Comment
The Observer pattern is one of the most used patterns (except maybe for Singleton). It's easy to implement and use - and to understand!
You might want to read the following book, which should be in every OO programmers library:
Design Patterns: Elements of Reusable Object-Oriented Software
"I thought this is why we used the delegate event model, or the event subscriber model, so that we didn't have to monitor all this stuff?"
You are absolutely 100% correct. I have no idea why the author went through all the pains of setting up all the callbacks/polling/whatever you want to call it, by hand in this example when delegates (Name EventHandler delegates) would have more than sufficed, as well as made the code much more readable, and smaller.
It's almost like he went out of his way to do it the Java way ;-).
Yeah I am just going to assume that this author closely relates to this article. http://worsethanfailure.com/Articles/The_Complicator_0x27_s_Bicycle...



