views:

122

answers:

4

Where to find good material to study observer pattern? I need some examples, of code and also pictures of modelled situations

+1  A: 

For starters: Observer on Wikipedia. It includes examples in Java, Python and C++, and lots of links.

Here is a C# example & UML diagram.

Péter Török
it seems good although have aversion to wikipedia. I am from czech republic and czech wikipedia does not have a lot of informations on specialised problems.
joseph
@joseph change to the english version; update the url with en in stead of your country code. But I agree, the default non-english page sucks big time.
extraneon
@joseph this is the English version. It has very good information about most known design patterns.
Péter Török
+6  A: 

Head first design patterns is the book for you. There are loads of pictures in this book. alt text

Here is the code for observer pattern and other patterns (JAVA).

TheMachineCharmer
+1 - Love you sweety(in the pic).
Webbisshh
good stuff, I've found example of what the book can offer. Quite funny is first picture with a man drinking coffee:D see the pdfhttp://oreilly.com/catalog/hfdesignpat/chapter/ch03.pdf
joseph
+1  A: 

Most of the chapter on the Observer pattern from the Design Patterns in Java book can be viewed on Google Books.

Same thing for Head First Design patterns, by the way.

alt text alt text

JRL
+1 didn't know about the other book. :)
TheMachineCharmer