参考
- https://code.tutsplus.com/tutorials/3-key-software-principles-you-must-understand--net-25161 (3 Key Software Principles You Must Understand)
- https://blog.csdn.net/zj_show/article/details/8065836 (DRY)
- https://blog.csdn.net/zj_show/article/details/8071473 (KISS)
- https://blog.csdn.net/zj_show/article/details/8078447 (YAGNI)
什么是真爱什么就是真正的编码 -- What's true for love, is true for code.
1. DRY(Don't Repeat Yourself)
降低可管理单元复杂度的一个基本策略就是将他们拆解成更小的单元。
个人认为,对付complexity的工具有抽象能力,拆分成可理解,单一原则的单元。
一图胜多言
2. KISS
留坑