
Design Patterns
文章平均质量分 62
hhf
C / C plus plus
Network Server
3D
展开
-
Review of Wrapper Facade in POSA2
Facade is a pattern which was referred to in so many books or articles. Here is a simple review of facade in POSA2, in which facade is called wrapper facade. For more details, refer to POSA2. They原创 2011-06-13 23:42:00 · 593 阅读 · 0 评论 -
Active Object
This article is extracted from POSA2 as a reading note.The Active Object design pattern decouples method execution from method invocation原创 2011-07-30 09:40:04 · 701 阅读 · 0 评论 -
Monitor Object
This article is extracted from POSA2 as a reading note.The Monitor Object design pattern synchronizes concurrent method execution to ensur原创 2011-07-30 10:21:40 · 1543 阅读 · 0 评论 -
Half-Sync/Half-Async
This article makes a brief introduction of the Half-Sync/Half-Async pattern from POSA2 as my reading note.The Half-Sync/Half-Async archite原创 2011-07-30 12:05:12 · 1333 阅读 · 0 评论 -
Leader/Followers
This article outlined a global view of the Leader/Followers pattern in POSA2 as my reading note.The Leader/Followers architectural patter原创 2011-07-30 13:06:28 · 1121 阅读 · 0 评论 -
Thread-Specific Storage
This article told the last pattern illustrated in POSA2 - Thread Specific Storage, which is such a common mechanism provided by some operat原创 2011-07-30 13:51:33 · 1106 阅读 · 0 评论 -
六大OO设计原则
套用各种DP写一个系统,跑起来了,但后来发现真有变化来临的时候想扩展还得大规模改动甚至重写,这就是传说中的DP乱套了,达不到效果反而徒增工作量,内心惭愧,于是细读OO大师的设计信条,才慢慢明晓DP要怎么样实作才能真正达到效果,记下六大原则原文,肃清乱套之风,以作警戒。Si原创 2011-09-16 22:17:17 · 930 阅读 · 0 评论 -
实现无需OO机制的观察者(性能至上)
模式大部分实现利用的是编程语言的继承多态等机制,以面向接口编程优先使用组合等等原则为实作的依归,把系统高内聚低耦合地划分了许多相对独立的类来实现拼装,模式套用多了难免出现很多类及各种子类,但却很大程度从结构上让系统的可维护性增强了,一般来说现在很多公司的OO系统就是这样做出来的。原创 2011-08-21 15:53:11 · 845 阅读 · 0 评论 -
模板强化Template Method & Singleton 模式
阅读之前期望你已经懂得模板方法模式及单例模式的原理。通俗软件设计模式的表述呈现由GoF先行打响头炮,其后各种版本的模式书籍层出不穷,大多示范实现都是以有多态特性的虚函数作为核心,每一个virtual function call是间接进行的,如此一来性能会有小小的损耗,但可读性良好原创 2011-08-25 12:00:38 · 597 阅读 · 0 评论 -
Asynchronous Completion Token
This article is extracted from POSA2 as my reading note.See a familiar scene that all people experienced now and then: HTTP Cokkies. Web ser原创 2011-07-20 12:06:33 · 1057 阅读 · 0 评论 -
Double Checked Locking Optimization
This article is extracted from POSA2 as a reading note.I recall that I read an article argued about whether DCL is truely safe sometime. The原创 2011-07-26 18:18:42 · 607 阅读 · 0 评论 -
Thread-Safe Interface
This article is extracted from POSA2 as a reading note.This pattern is really a shock for me. I met it in some projects before but I cannot原创 2011-07-26 15:20:50 · 662 阅读 · 0 评论 -
Reading Response of Component Configurator in POSA2
Refer to POSA2 for any details. This article is a simple review with some records that give me brain storming in the book. The Component Configurable design pattern also known as Service Configura原创 2011-06-19 10:05:00 · 484 阅读 · 0 评论 -
Summary of interceptor introduced in POSA2
This pattern allows services to be added transparently to a framework and triggered automatically when certain events occur. Concrete Framework : A concrete framework instantiates a generic and e原创 2011-06-21 15:04:00 · 454 阅读 · 0 评论 -
Extension Interface
All contents are extracted from POSA2. The Extension Interface design pattern allows multiple interfaces to be exported by a component, to prevent bloating of interfaces and breaking of client co原创 2011-06-26 23:48:00 · 711 阅读 · 0 评论 -
Reactor
This article told a brief introduction of reactor illustrated in POSA2, so there are more you want to know, refer to POSA2.The Reactor architectural pattern allows event-driven applications to dem原创 2011-07-01 00:14:00 · 581 阅读 · 0 评论 -
Proactor
This article is extracted from POSA2 as my reading note. The Proactor architectural pattern allows event-driven applications to efficiently原创 2011-07-10 21:31:23 · 641 阅读 · 0 评论 -
Acceptor-Connector
This article is extracted from POSA2 as a reading note.Superserver implementations, for example Inetd, Listen, and the Service Configurator原创 2011-07-25 15:58:39 · 1487 阅读 · 0 评论 -
Scoped Locking
This article is extracted from POSA2 as a reading note.Scoped Locking is a pattern? I can't answer well until I read the associated portion原创 2011-07-25 18:06:22 · 865 阅读 · 1 评论 -
Strategized Locking
This article is extracted from POSA2 as a reading note.Strategized Locking is another pattern I was very familiar with through working with原创 2011-07-26 11:03:23 · 718 阅读 · 0 评论 -
Pattern Hatching讲了什么
两三天内读完PatternHatching小册子,有点小幸福。 从一个文件系统设计开始讲,使用composite建立树状模型,使用proxy处理连接,访问方式上用了visitor,文件保护上用了template method,多用户保护上用了扩展的singleton,组映射上用了mediator,真有点小壮观,如同all stars game一样让人兴奋。 接着作者又八了八sing原创 2011-11-11 16:24:02 · 842 阅读 · 0 评论