软件工程 - 软件开发原则

参考

  1. https://code.tutsplus.com/tutorials/3-key-software-principles-you-must-understand--net-25161 (3 Key Software Principles You Must Understand)
  2. https://blog.csdn.net/zj_show/article/details/8065836 (DRY)
  3. https://blog.csdn.net/zj_show/article/details/8071473 (KISS)
  4. 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

Keep it Simple and Stupid。把产品做得傻瓜化,小白用户容易上手。

3. YAGNI

You aren't gonna need it
is a principle of extreme programming (XP) that states a programmer should not add functionality until deemed necessary。不要炫技,贴近业务,服务用户。
KISS是通过尽可能容易的完成某件事情来实现精简方案;但YAGNI是通过根本就不实现它来达到精简。

posted @ 2018-05-23 16:56  Rocin  阅读(258)  评论(0编辑  收藏  举报