mrfangzheng

Hope and fear are useless. Be confident, and always be prepared for the worst.
  首页  :: 新随笔  :: 联系 :: 管理

编程其实是一项防御性质的工作, 因为写出错误代码的可能性远大于写出正确的代码

- 做好Debug logging, 因为1)客户机没有debugger 2)bug总是出现在意想不到的地方

- 做好自动化测试, 因为1)新代码出错的可能性远大于正确的可能性 2)测试操作会执行成百上千遍