Lec 15 设计模式 & 函数式JS
什么是设计模式?
设计本质上是在寻找解决方案。设计师经常会重复发明,花费大量的经历,甚至错误也会一起重复发明。
为什么要使用设计模式?
因为:
- 想出全新的解决方案是很困难的
- 应该把创新留给真正重要的地方
- 不要重复造轮子(Don't reinvent the wheel)
设计模式更有可能是经过验证(tested)的设计。
很多模式来自大型公司:
- 它们往往投入了大量设计时间和资金
- 并且会根据真实用户使用情况不断演化
用户大部分时间都花在其他网站上。
因此:
- 一致的设计可以提升可学习性(learnability)
- 用户更容易上手
资源
- A nice collection of patterns described and explained at UI Patterns
- A catalog of numerous UI pattern web sites on uxlibrary.org
- Another list of pattern sites at interactiondesign.org.