读书人

软件工程师应该知道的97件事(1)

发布时间: 2012-12-20 09:53:21 作者: rapoo

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

<!--@page { margin: 2cm }P { margin-bottom: 0.21cm }-->

小心行事

对所做的任何操作都应该精心思考过,否则你必将会为你的一时不小心付出代价

?

配合使用函数式编程

?

站在用户的角度审视自己的设计

?

自动化编码标准

如果不遵守标准,打包失败

标准也要实时变化

?

简单是最美的,大道至简

?

关于重构

首先对现有的代码进行反思,总结,比较

Thebest approach for restructuring starts by taking stock of theexisting

codebaseand the tests written against that code.

Rememberthat humans make mistakes

Newtechnology is an insufficient reason to refactor

Personalpreferences and ego shouldn’t get in the way

Aftereach development iteration, it is important to ensure that theexisting tests pass.

Manyincremental changes are better than one massive change

Avoidthe temptation to rewrite everything.

?

?

“Alwaysleave the campground cleaner than you found it.

?

Givenhow rare compiler bugs are, you are far better putting your time and

energyinto finding the error in your code than into proving that thecompiler

iswrong.

?

读书人网 >编程

热点推荐