<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->
小心行事
对所做的任何操作都应该精心思考过,否则你必将会为你的一时不小心付出代价
配合使用 函数式编程
站在用户的角度审视自己的设计
自动化编码标准
如果不遵守标准,打包失败
标准也要实时变化
简单是最美的,大道至简
关于重构
首先对现有的代码进行反思,总结,比较
The best approach for restructuring starts by taking stock of the existing
codebase and the tests written against that code.
Remember that humans make mistakes
New technology is an insufficient reason to refactor
Personal preferences and ego shouldn’t get in the way
After each development iteration, it is important to ensure that the existing tests pass.
Many incremental changes are better than one massive change
Avoid the temptation to rewrite everything.
“Always leave the campground cleaner than you found it.
Given how rare compiler bugs are, you are far better putting your time and
energy into finding the error in your code than into proving that the compiler
is wrong.