http://www.ddj.com/dept/embedded/193104891
看到的一篇文章,关于code review的一种“最佳实践”。引用了NASA太空船开发的例子,并给出了几个“几乎可应用于任何软件项目的建议”。
“Code reviews are just one means of detecting program errors. Ed looks closely at how errors evade detection and gives you the opportunity to play code reviewer.Even if your blunders are neither so costly nor public, what you see here may look disturbingly familiar.”
“In other words, when you're expected to work smarter, you must actually think about the project, preferably before you begin. Ignoring potential problems is not a strategy.”
--不要把一切都交给重构,事先还是要尽可能想清楚。
“We've found that bouncing your coding ideas off somebody else really is the first and best line of defense against errors. ”
--熟悉吧,结对编程的影子,庞大的项目照样有敏捷原则。
“The tests must match up with reality, rather than with an idealized model:”
--警言啊。测试必须合乎“事实”,而不是理想化的模型。
看到的一篇文章,关于code review的一种“最佳实践”。引用了NASA太空船开发的例子,并给出了几个“几乎可应用于任何软件项目的建议”。
“Code reviews are just one means of detecting program errors. Ed looks closely at how errors evade detection and gives you the opportunity to play code reviewer.Even if your blunders are neither so costly nor public, what you see here may look disturbingly familiar.”
“In other words, when you're expected to work smarter, you must actually think about the project, preferably before you begin. Ignoring potential problems is not a strategy.”
--不要把一切都交给重构,事先还是要尽可能想清楚。
“We've found that bouncing your coding ideas off somebody else really is the first and best line of defense against errors. ”
--熟悉吧,结对编程的影子,庞大的项目照样有敏捷原则。
“The tests must match up with reality, rather than with an idealized model:”
--警言啊。测试必须合乎“事实”,而不是理想化的模型。
本文介绍了一种关于代码审查的最佳实践,通过NASA太空船开发的例子强调了代码审查的重要性,并提出了适用于大多数软件项目的建议。建议包括避免依赖重构解决问题、与其他开发者讨论编码思路以及确保测试符合实际情况。
6万+

被折叠的 条评论
为什么被折叠?



