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

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - 心雨无痕

升级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)