• 访问者模式

    访问者模式-VisitorPatternWHAT定义Representanoperationtobeperformedontheelementsofanobjectstructure.Visitorletsyoudefineanewoperationwithoutchangingtheclasses...

    备忘录模式

    备忘录模式 - Memento Pattern,一种弥补真实世界缺陷的方法,一个对象的备份模式,提供一种程序数据的备份方法WHAT定义Without violating encapsulation, capture and externalize an object's internal state...

    门面模式

    门面模式 -- Facade Pattern, 也叫做外观模式WHAT定义Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that m...

    观察者模式

    观察者模式 - Observer Pattern, 也叫做发布订阅模式(Publish / subscribe)WHAT定义Define a one-to-many dependency between objects so that when one object changes state, a...

    组合模式

    组合模式 - Composite Pattern,也叫合成模式,又叫做部分-整体模式(Part-Whole)WHAT主要用来描述部分与整体的关系定义Compose objects into tree structures to represent part-whole hierarchies. Co...

    迭代器模式

    迭代器模式 - Iterator PatternWHAT定义provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation它...

    适配器模式

    适配器模式-AdapterPattern,又叫做变压器模式,也叫做包装模式(Wrapper)。WHAT定义Converttheinterfaceofaclassintoanotherinterfaceclientsexpect.Adapterletsclassesworktogetherthatco...

    策略模式

    WHAT策略模式 - Strategy Pattern, 也叫政策模式(Policy Pattern)定义Define a family of algorithms, encapsulate each one, and make them interchangeable.定义一组算法,将每个算法都封...

    阅读「My guiding principles after 20 years of programming」

    My guiding principles after 20 years of programming@ Alex Ewerlof阅读说明Tips:H3 - 观点方格中 - 自身想法斜体 - 译文或总结斜体英文 - 暂时无法翻译正文作者用一段话说明了自己长达20年的开发生涯,以及担任了各种技术相关的...

    装饰模式

    装饰模式 - Decorator PatternWHAT定义Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible al...