From 65bd1c26a4da412d50094e0ee990be9dc2024158 Mon Sep 17 00:00:00 2001 From: Jruif <597710271@qq.com> Date: Thu, 30 Jul 2015 11:50:25 +0800 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 3-tier: 三层架构 abstract_factory:抽象工厂 adapter:适配器模式 borg:单例模式 bridge:桥接模式 builder:建造者模式 chain:链模式 command:命令模式 composite:组合模式 decorator:装饰模式 facade:外观模式 factory_method:工厂方法 flyweight:享元模式 graph_search:图搜索模式 iterator:迭代器模式 mediator:中介模式 memento:备忘录模式 mvc:mvc模式 null:空模式 observer:观察者模式 pool:连接池模式 prototype:原型模式 proxy:代理模式 publish_subscribe:发布/订阅模式 state:状态模式 strategy:策略模式 template:模板方法模式 visitor:访问者模式 --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f58f7c1d..69d80cd6 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,16 @@ Current Patterns: | Pattern | Description | |:-------:| ----------- | -| [3-tier](3-tier.py) | data<->business logic<->presentation separation (strict relationships) | -| [abstract_factory](abstract_factory.py) | use a generic function with specific factories | -| [adapter](adapter.py) | adapt one interface to another using a whitelist | -| [borg](borg.py) | a singleton with shared-state among instances | -| [bridge](bridge.py) | a client-provider middleman to soften interface changes | -| [builder](builder.py) | call many little discrete methods rather than having a huge number of constructor parameters | +| [3-tier(三层架构)](3-tier.py) | data<->business logic<->presentation separation (strict relationships) | +| [abstract_factory(抽象工厂)](abstract_factory.py) | use a generic function with specific factories | +| [adapter(适配器模式)](adapter.py) | adapt one interface to another using a whitelist | +| [borg(单例模式)](borg.py) | a singleton with shared-state among instances | +| [bridge(桥接模式)](bridge.py) | a client-provider middleman to soften interface changes | +| [builder(建造者模式)](builder.py) | call many little discrete methods rather than having a huge number of constructor parameters | | [catalog](catalog.py) | general methods will call different specialized methods based on construction parameter | -| [chain](chain.py) | apply a chain of successive handlers to try and process the data | -| [chaining_method](chaining_method.py) | continue callback next object method | -| [command](command.py) | bundle a command and arguments to call later | +| [chain(链模式)](chain.py) | apply a chain of successive handlers to try and process the data | +| [chaining_method()](chaining_method.py) | continue callback next object method | +| [command(命令模式)](command.py) | bundle a command and arguments to call later | | [composite](composite.py) | encapsulate and provide access to a number of different objects | | [decorator](decorator.py) | wrap functionality with other functionality in order to affect outputs | | [facade](facade.py) | use one class as an API to a number of others |