List 1 Uncle Bob

Refactoring: Improving the Design of Existing Code

https://learning.oreilly.com/library/view/refactoring-improving-the/9780134757681/toc.xhtml

Chapter 3: Bad Smells in Code

##Bad Smell
1Mysterious Name
2Duplicated Code
3Long Function
4Long Parameter List
5Global Data
6Mutable Data
7Divergent Change
8Shotgun Surgery
9Feature Envy
10Data Clumps
11Primitive Obsession
12Repeated Switches
13Loops
14Lazy Element
15Speculative Generality
16Temporary Field
17Message Chains
18Middle Man
19Insider Trading
20Large Class
21Alternative Classes with Different Interfaces
22Data Class
23Refused Bequest
24Comments

List 2 郑烨

##代码坏味道
1命名不规范
2乱用英语
3重复代码
4长函数
5大类
6长参数列表
7滥用控制语句
8缺乏封装
9可变的数据
10变量声明与赋值分离
11依赖混乱
12不一致的代码
13落后的代码风格

命名

img

乱用英语

img

重复代码

img

长函数

img

大类

img

长参数列表

img

滥用控制语句

img

缺乏封装

img

可变的数据

img

变量声明与赋值分离

img

依赖混乱

img

不一致的代码

img

落后的代码风格

img