知了博客

集天地之精华,吸日月之灵气

« 现在的计算机专业学生怎么这个样?singleton模式 »

工作总结(2010-01)

2010-01-29
这个月把软件设计模式,粗略的地研究一遍。软件设计,不光光只是会点编码、用一用软件、然后在人前显耀下。23种desgin,是其它软件设计的基础,也是面象对象的基础。j2ee,很多模式都是基于这23种。
月未了,尽管,还不能完全软件设计模式完全应用起了,总结下,很好~
2010-01-08
singleton/adapter/command/interpertor/chain of responsibily
2010-01-06
单键模式->内存自动释放->通用模板
静态成员初始化->模板静态成员初始化
2010-01-04
设计模式学习:练武也有章可循,然招式是死的,人是活的,活学活用这很重要。模式并不在于你了解多少,而在于撑握多少,能用于实际工作当中有多少。oo思想,目前达不到自然抽象,自然抽象变化很多,要达到完全智能,目前不可能。下面为GOF模式简单描述。
Creational Patterns
Abstract Factory Creates an instance of several families of classes
Builder Separates object construction from its representation
Factory Method Creates an instance of several derived classes
Prototype A fully initialized instance to be copied or cloned
Singleton A class of which only a single instance can exist

Structural Patterns
Adapter Match interfaces of different classes
Bridge Separates an object’s interface from its implementation
Composite A tree structure of simple and composite objects
Decorator Add responsibilities to objects dynamically
Facade A single class that represents an entire subsystem
Flyweight A fine-grained instance used for efficient sharing
Proxy An object representing another object

Behavioral Patterns
Chain of Resp. A way of passing a request between a chain of objects
Command Encapsulate a command request as an object
Interpreter A way to include language elements in a program
Iterator Sequentially access the elements of a collection
Mediator Defines simplified communication between classes
Memento Capture and restore an object's internal state
Observer A way of notifying change to a number of classes
State Alter an object's behavior when its state changes
Strategy Encapsulates an algorithm inside a class
Template Method Defer the exact steps of an algorithm to a subclass
Visitor Defines a new operation to a class without change
  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Arwen Build 90619 Code detection by Codefense  theme by BokeZhuti

Copyright know blog. Some Rights Reserved.站长(msn):webmaster#webgou.info(#换成@) 粤ICP备09183716号