摘要: 开放封闭原则 Software entities (classes, modules, etc) should be open for extension, but closed for modification. 软件实体像类,模块等应该对扩展是开放的,而对修改是封闭的。 里氏替换原则 Derived classes must be usable through the ba... 阅读全文
posted @ 2007-08-07 11:27 许晓光 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 设定好控件属性后,要用代码this.Controls.Add(this.userControl);把控件加到Form中。 阅读全文
posted @ 2007-08-06 14:49 许晓光 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 1.执着2.亲和力3.压力管理4.口才5.执行力6.时间管理7.品德高尚8.交流技能 阅读全文
posted @ 2007-08-06 10:36 许晓光 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 为了创建高质量的可维护性,可重用性,可扩展性的应用程序,通常我们使用面向对象的抽象设计。这其中我们可以使用面向对象语言C#提供的abstract class抽象类和interface接口。1.Interface接口支持多继承: 1 public interface ICpu 2 { 3 // 4 } 5 6 public interface IMemory ... 阅读全文
posted @ 2007-08-03 13:02 许晓光 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Definea family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. 阅读全文
posted @ 2007-08-02 14:21 许晓光 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 契约式设计也可以叫做 programming by contract 或contract first development, 1986年Bertrand Meyer在Eiffel编程语言中提出的术语。现在Visual Studio 2005 Team Edition也支持契约式设计。 阅读全文
posted @ 2007-08-01 18:03 许晓光 阅读(315) 评论(0) 推荐(0) 编辑
摘要: WSE2.0 用DIME 作为附件的传输协议。 而在WSE3.0中使用新的MTOM消息传输优化机制。 阅读全文
posted @ 2007-08-01 17:18 许晓光 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Define a one to many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. 阅读全文
posted @ 2007-08-01 16:11 许晓光 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Provide a unified interface to a set of interfaces in a subsystem.Facade defines a high level interface that makes the subsystem easier to use. EJB中可以用Facade模式减少远程调用的次数! 阅读全文
posted @ 2007-08-01 14:06 许晓光 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Provide a surrogate or placeholder for another object to control access to it. 代理类型: 远程代理(Remote Proxy) .NET Remoting, JAVA RMI 虚拟代理(Virtual Proxy)It will not be created until needed. Copy on write... 阅读全文
posted @ 2007-08-01 10:51 许晓光 阅读(212) 评论(0) 推荐(0) 编辑