mirror of
https://github.com/glen9527/Clean-Code-zh.git
synced 2025-12-17 18:54:23 +08:00
md 引入图片资源
This commit is contained in:
13
docs/ch12.md
13
docs/ch12.md
@@ -1,7 +1,7 @@
|
||||
# 第 12 章 Emergence
|
||||
by Jeff Langr
|
||||
|
||||
Image
|
||||

|
||||
|
||||
GETTING CLEAN VIA EMERGENT DESIGN
|
||||
What if there were four simple rules that you could follow that would help you create good designs as you worked? What if by following these rules you gained insights into the structure and design of your code, making it easier to apply principles such as SRP and DIP? What if these four rules facilitated the emergence of good designs?
|
||||
@@ -12,13 +12,10 @@ Many of us feel that Kent Beck’s four rules of Simple Design1 are of significa
|
||||
|
||||
According to Kent, a design is “simple” if it follows these rules:
|
||||
|
||||
• Runs all the tests
|
||||
|
||||
• Contains no duplication
|
||||
|
||||
• Expresses the intent of the programmer
|
||||
|
||||
• Minimizes the number of classes and methods
|
||||
- Runs all the tests
|
||||
- Contains no duplication
|
||||
- Expresses the intent of the programmer
|
||||
- Minimizes the number of classes and methods
|
||||
|
||||
The rules are given in order of importance.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user