Design pattern used in projects [closed]

与世无争的帅哥 提交于 2020-01-31 04:59:11

问题


Hi I am learning Design patterns these days. I want to read design pattern used in various projects and how it is implemented. Implementation is helpful to connect the design pattern in broader picture and why they deiced to use that pattern. Problem with open source projects are they are not documented properly.

Can anone help me with sm online resource?

PS: if possible i need in c or C++

UPDATE: projects that are listed below :
http://www.boost.org
http://sourceforge.net/projects/loki-lib/
'POCO.'
ACE (The Adaptive Communication Environment).

If anyone want to add more please do. Personaly i looked at the above projects and found boost to be a good choice to start.

UPDATE: Due to a nice post on java which describe design pattern Examples of GoF Design Patterns in Java's core libraries .I am including some other languages in tag as well that i know


回答1:


boost, a very well written and documented library implements several design patterns. it's quite a large library, and these implementations are used in the libraries.

http://www.boost.org

boost is found in many projects, but loki's also worth reading:

http://sourceforge.net/projects/loki-lib/

the original author of loki (Andrei Alexandrescu) went over many of the design details in a c++ classic Modern C++ Design: Generic Programming and Design Patterns Applied.




回答2:


There are many libraries which make a good use of patterns, but let me point you to two that seems very good to me:

  • ACE (The Adaptive Communication Environment). Open-source object-oriented (OO) framework that implements many core patterns for concurrent communication software.
  • POCO. Open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems.

Of course, as Justin said, Boost can also be a source of learning.




回答3:


Now review this site.

http://en.wikibooks.org/wiki/C++_Programming/Code/Design_Patterns




回答4:


I found a very helpful examples of how/where is particular pattern used under the java tag (it shouldn't be to hard to understand it): Examples of GoF Design Patterns in Java's core libraries



来源:https://stackoverflow.com/questions/5039196/design-pattern-used-in-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!