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

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - zyi

Windows FTP安装 组合模式 Oracle优化 Oracle的汉字转拼音首字母的函数 创建job 建索引 加解密 代码规范工具 Dev进度条 SQL_SERVER 导oracle(转) SQL_SERVER 连接oracle(转) win7电脑上wifi Oracle对象统计信息 关于odp.net的FetchSize属性 技巧类 linq in 语法 温习设计模式 静态与非静态(转改) 关于引擎的设计
耦合内聚封装
zyi · 2013-06-27 · via 博客园 - zyi
    

耦合(coupling) :是指在一个系统内部一个模块对另一个模块的依赖程度,这个概念同样适用于两个系统之间.如果两个模块(或系统)彼此的依赖程度很高,以至于修改一个模块(或系统)时,必须对另外一个模块(或系统)进行修改,我们就称其是紧耦合(tightly coupled)的,开发人员应该尽量追求相反的效果,以实现松耦合(loosely coupled)的模块和系统.

     内聚(cohesion) :是指系统的一个特定的模块或子系统独立、完整地实现系统的一个功能的程度.强内聚(strongly cohesive)的模块只实现一个功能,而弱内聚(weakly cohesive)的模块实现很多功能.强内聚的模块之所以受了广泛的青睐,是因为与弱内聚模块相比,强内聚的模块更利于维护和重用.

     封装(encapsulation) :是指系统中模块的底层实现的隐藏程度.封装是与松耦合和强内聚并列的概念.我们说逻辑封装在模块中,指的是模块的方法或属性没有公开其内部行为相关的设计决策。