开发者

Where do I find good material on the Observer design pattern?

开发者 https://www.devze.com 2022-12-22 10:24 出处:网络
Where to find good material to study obs开发者_JS百科erver pattern? I need some examples, of code and also pictures of modelled situationsHead first design patterns is the book for you.

Where to find good material to study obs开发者_JS百科erver pattern? I need some examples, of code and also pictures of modelled situations


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

Where do I find good material on the Observer design pattern?


(source: headfirstlabs.com)

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


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 http://bks6.books.google.com/books?id=S5ebGvuLJqQC&printsec=frontcover&img=1&zoom=5&edge=curl&sig=ACfU3U3OFvA14Y4IKb9iZ-eH664YW15Fbg alt text http://bks1.books.google.com/books?id=LjJcCnNf92kC&printsec=frontcover&img=1&zoom=5&edge=curl&sig=ACfU3U1t6E1H5cFgQvMyhE8hkYJk-Rt0Lg


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

Here is a C# example & UML diagram.


Here's a nice dzone article about the observer pattern. You may also like Non-software examples of Software Design Patterns.

0

精彩评论

暂无评论...
验证码 换一张
取 消