完备 Singleton 模式
Singleton 是比较常见的设计模式了,它的实现很简单,真正具有挑战的是:你如何使用Singleton?Singleton的目的: 保证应用只有一个全局唯一的实例,并且提供一个访问它的全局访问点。Singleton的实现要点如下:1,私有构造函数防止在外部实例化。2,保存唯一实例的静态的私有变量...
有趣的设计模式元素表
From: http://home.earthlink.net/~huston2/dp/patterns.html...
Programming WCF Services翻译笔记(一)
一、缘起从去年的九月开始以来,我开始体验到了笔耕不缀的乐趣与痛苦。说是乐趣,是因为我非常享受码字的这种感觉,仿佛是小说家在倘佯在自己虚构的世界一般,任思想天马行空,无拘无束。虽然说技术要求严谨,但又何尝不需要一点点想象力呢?严谨方可以确保技术的正确与准确,然而如果没有幻想与创新,那么技术的突破就会成...
设计模式随笔系列:来杯咖啡-装饰者模式(Decorator)[原]
来杯咖啡-装饰者模式(Decorator)前言上篇【观察者模式】发布已经近一个月了,个人感觉反应并不太理想,因为大家响应都不是很积极,不知是文章那里写得有问题,而且也没有人提出过有价值的改进建议,多少感觉有些失望L!因为工作繁忙,所以不可能把主要精力投入到写作上,因此这个系列的文章更新有些缓慢,但是...
开发自定义的Provider
asp.net 2.0在很多地方都用到Provider Pattern,比如Personalization、MemberShip等都用到了该模式,其可插拔的特性给开发人员极大的便利,开发人员可以更据自己的需求来开发自己的需要.Net 2.0中给我们已经定义了一个ProviderBase的抽象类,继承...
Passive View - Martin's "GUI Architectures" series (4)
zz from www.martinfowler.com To be translated... Passive View A screen and components with all application specific behavior extracted into a controll...
Presentation Model - Martin's "GUI Architectures" series (3)
zz from www.martinfowler.com To be translated... Presentation Model Represent the state and behavior of the presentation independently of the GUI cont...
Supervising Controller - Martin's "GUI Architectures" series (2)
zz from www.martinfowler.com To be translated... Supervising Controller Factor the UI into a view and controller where the view handles simple mapping...
《软件设计精要与模式》源代码下载
免费阅读样章与下载源代码,请访问CSDN读书频道。当当网介绍本书的专题:http://www.dangdang.com/zhuanti2006/4742.shtml第二书店:http://www.dearbook.com.cn/book/176606(当当已经到货)China-Pub:http://...