惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
T
Tailwind CSS Blog
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
博客园 - 【当耐特】
W
WeLiveSecurity
J
Java Code Geeks
Latest news
Latest news
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Troy Hunt's Blog
博客园 - Franky
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
PCI Perspectives
PCI Perspectives
博客园_首页
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
P
Palo Alto Networks Blog
I
InfoQ
Security Latest
Security Latest
Hacker News: Ask HN
Hacker News: Ask HN
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
Help Net Security
Help Net Security
F
Full Disclosure
Cyberwarzone
Cyberwarzone
D
DataBreaches.Net
The Cloudflare Blog
S
Securelist
美团技术团队
C
Cybersecurity and Infrastructure Security Agency CISA
AI
AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events

博客园 - 心雨无痕

升级openssl和openssh linux配置LVM 杂七杂八 .net程序包含webbrowser插件时遇到的各种问题 mysql连接远程服务器很慢的解决方法 centos安装php需要注意的问题 centos配置nfs杂七杂八 iptables配置网络端口转发 桥接模式 适配器模式 单例模式 原型模式 工厂方法模式 简单工厂模式 建造者模式 ActionScript中Object和Dictionary的区别 FlashBuilder4.5破解方法 抽象工厂模式 了解下常见的开源协议
设计模式浅见
心雨无痕 · 2012-04-24 · via 博客园 - 心雨无痕

写了几年的程序了,对设计模式的了解一直不是深刻,没写下来的东西总是记忆不清楚,所以,总算是打算静下心来把我对设计模式的理解写下来,如果有不对的地方,还请看到的同志们多多指教。

创建型模式

1. 抽象工厂(Abstract Factory) -- 接口或抽象类

2. 建造者(Builder) -- 生产有复杂结构或多个组成部件的产品

3. 简单工厂(Simple Factory) -- 系列产品统一出口

4. 工厂方法(Factory Method) -- 生产系列产品

5. 原型(Prototype) -- 克隆/复制

6. 单例(Singleton) -- 全局唯一实例

构造型模式

1. 适配器(Adapter) - 接口转换

2. 桥接(Bridge) - 多维度变化分离

3. 组合(Composite)

4. 装饰器(Decorator)

5. 外观(Facade)

6. 享元(Flyweight)

7. 代理(Proxy)

行为型模式

1. 响应链(Chain of Responsibility)

2. 命令(Command)

3. 解释器(Interpreter)

4. 枚举(Iterator)

5. 中介(Mediator)

6. 备忘录(Memento)

7. 观察者(Observer)

8. 状态(State)

9. 策略(Strategy)

10. 模版方法(Template Method)

11. 访问者(Visitor)