Open LiBenkuo opened 7 years ago
Don't Repeat Yourself Once and Only Once
Don't Repeat Yourself
Once and Only Once
The Pragmatic Programmer 首提
You aren't gonna need it
Extreme Programming
do the simplest thing that could possibly work
两者并非完全兼容。
所以就有了第三个原则。
Refactoring
当某个功能第三次出现时,才进行抽象化。
Abstraction
DRY
The Pragmatic Programmer 首提
YAGNI
Extreme Programming
do the simplest thing that could possibly work
DRY VS YAGNI
两者并非完全兼容。
所以就有了第三个原则。
Rule of three
Refactoring
当某个功能第三次出现时,才进行抽象化。