上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页
摘要: 非表示,复数行,负号 阅读全文
posted @ 2007-09-21 15:47 sekihin 阅读(364) 评论(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-09-20 11:10 sekihin 阅读(623) 评论(0) 推荐(3)
摘要: ★☆☆☆☆ 在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。这样以后就可以将该对象恢复到原先保存的状态。 Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later. 阅读全文
posted @ 2007-09-14 16:30 sekihin 阅读(509) 评论(0) 推荐(0)
摘要: ★★☆☆☆ 用一个中介对象来封装一系列的对象交互。中介者使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变它们之间的交互。 Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently. 阅读全文
posted @ 2007-09-12 15:15 sekihin 阅读(558) 评论(0) 推荐(0)
摘要: 随着VBx对动态编程的更多支持计划,现在来讨论Visual Basic中已经存在的动态属性是个不错的时机。这一部分,我们讨论多重分派(Multiple Dispatch)。 阅读全文
posted @ 2007-09-11 13:21 sekihin 阅读(584) 评论(0) 推荐(0)
摘要: ★★★★★ 提供一种方法顺序访问一个聚合对象中各个元素,而又不需暴露该对象的内部表示。 Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. 阅读全文
posted @ 2007-09-11 11:47 sekihin 阅读(731) 评论(1) 推荐(0)
摘要: MVC(Model-View-Controller,模型—视图—控制器模式)用于表示一种软件架构模式。它把软件系统分为三个基本部分:模型(英语:Model),视图(View)和控制器(Controller)。 MVC由Trygve Reenskaug提出,最早被應用在SmallTalk-80環境中。模型—视图—控制器模式的目的是实现一种动态的程序设计,使后续对程序的修改和扩展简化,并且使程序某一部... 阅读全文
posted @ 2007-09-10 10:02 sekihin 阅读(1767) 评论(0) 推荐(1)
摘要: ★☆☆☆☆ 给定一个语言,定义它的文法的一种表示,并定义一种解释器,这个解释器使用该表示来解释语言中的句子。 Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language. 阅读全文
posted @ 2007-09-05 17:03 sekihin 阅读(518) 评论(0) 推荐(0)
摘要: ★★★★☆ 将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤销的操作。 Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. 阅读全文
posted @ 2007-09-05 08:22 sekihin 阅读(562) 评论(0) 推荐(0)
摘要: ★★☆☆☆ 为使多个对象都有机会处理请求,从而避免请求的发送者和接收者之间的耦合关系。将这些对象连成一条链,并沿着这条链传递该请求,直到有一个对象处理它为止。 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it. 阅读全文
posted @ 2007-09-04 13:11 sekihin 阅读(502) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页