- 博客(14)
- 收藏
- 关注
转载 We are what we repeatedly do. Excellence then, is not an act, but a habit.
Here are some ideas to get you started:1. Stop spending time with the wrong people. – Life is too short to spend time with people who suck the happiness out of you. If someone wants you in t
2014-05-29 22:11:41 4196
原创 Proxy(代理模式)
定义:provide a surrogate or placeholder for another object to control access to it 为其他对象提供一种代理以控制对这个对象的访问
2014-05-09 15:00:52 458
原创 Decorator(装饰着模式)
定义:Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
2014-05-03 15:55:00 451
原创 Composite(组合模式)
定义:Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly
2014-04-30 15:06:16 424
原创 Visitor(访问者模式)
定义:the visitor design pattern is a way of separating an algorithm from an object structure on which it operates. A practical result of this separation is the ability to add new operations to existing
2014-04-29 14:44:30 513
原创 Singleton(单例模式)
定义:the singleton pattern is a design pattern that restricts the instantiation of a class to one object保证一个类仅有一个实例,并提供一个访问它的全局访问点。单例模式应该是所有设计模式中最简单的一个了,相信不少人也都用过。我第一次接触到单例模式是在cocos2d中,cocos2d中大
2014-04-28 22:01:12 411
原创 State(状态模式)
定义:Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
2014-04-28 17:12:15 513
原创 Builder(建造者模式)
定义:The intent of the Builder design pattern is to separate the construction of a complex object from its representation. By doing so, the same construction process can create different representations
2014-04-27 17:41:22 410
原创 Strategy(策略模式)
定义:The Strategy Pattern defines a family of algorithms,encapsulates each one,and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
2014-04-26 13:43:30 367
原创 Template Method(模板方法)
定义:Define the skeleton of an algorithm in an operation, deferring some steps to subclasses.
2014-04-25 17:14:12 426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人