程序员应该知道的97件事(1)

<!-- @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.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值