12 2011 档案

a link for book
摘要: http://news.cnblogs.com/n/125826/阅读全文

posted @ 2011-12-20 21:25 小AI| 编辑

[review]Design Pattern:State
摘要: StateAlter the object's behavior by the changes of its state. And the states are all encapsulated into single object state by state. decouple the state(especially the object's behavior under different states) from the the object itselfWhen we use this patternThey are all about the state of t阅读全文

posted @ 2011-12-12 22:48 小AI| 编辑

[review]Design Pattern:Bridge
摘要: BridgeThe book told me that this pattern is dedicated to decouple the abstraction from its implemetation so they can vary by themself without affecting each others.To be honest, I don't know which one I should call as abstraction and which one as implemetation. I call them two structures designe阅读全文

posted @ 2011-12-08 22:29 小AI| 编辑

[review]Design Pattern:Iterator
摘要: IteratorA way provided by this pattern lets the client access the aggregate object in turns(one by one) but without exposing the details of the aggregate object.An iterator are designed in this pattern toenumerate the object.Auctually. ASP.NET has implemented this pattern with providing two interfac阅读全文

posted @ 2011-12-07 23:04 小AI| 编辑

[review]Design Pattern:Command
摘要: CommandEncapsulate an request into the object. The command holds the receiver, the invoker holds the command.encapsulate the details, show the interface to the client. the client does not know the exact implemetation .The client only cares about his request and tells the invoker what his request is,阅读全文

posted @ 2011-12-06 23:11 小AI| 编辑

[review]Design Pattern:Builder
摘要: BuilderDecouple theappearance from the construct process(algorithm) for a complicated object, the algorithm can be used for so much appearance. for reusing the algorithm, for hiding the details from the client. The appearance can be showed without leaving any parts needed with the help of the unifie阅读全文

posted @ 2011-12-05 22:49 小AI| 编辑

[review]Design Pattern:Memento
摘要: MementoMemento as its name describes, which is for storing something. for recorving something from it.We want to capture the type's inner state at a given time and also want to recove it to where it was captured but without jeopardizing the encapsulation withoutexposing the type's details to阅读全文

posted @ 2011-12-01 23:01 小AI| 编辑

导航