Google 的12条开发程序的准则

2008-09-18 22:41:27


原文:

1. All developers work out of a single source depot; shared infrastructure!
2. A developer can fix bugs anywhere in the source tree.
3. Building a product takes 3 commands ("get, config, make")
4. Uniform coding style guidelines across company
5. Code reviews mandatory for all checkins
6. Pervasive unit testing, written by developers
7. Unit tests run continuously, email sent on failure
8. Powerful tools, shared company-wide
9. Rapid project cycles; developers change projects often; 20% time
10. Peer-driven review process; flat management structure
11. Transparency into projects, code, process, ideas, etc.
12. Dozens of offices around world => hire best people regardless of location


粗译文:
1:所有程序员基于一个代码库工作,所以整个架构是共享的。
2:有了第一条,程序员可以修改任何一颗代码树上的 bug。
3:自动编译
4:统一的代码格式。
5:对所有的check in 强制要求代码评审
6:程序员写单元测试成一种习惯
7:单元测试始终被运行,遇到问题发封邮件给你
8:强大的工具,要在全公司分享
9:快速的项目开发周期;开发人员经常变更项目;20%时间.
10: 同伎评审,扁平管理
11:项目,代码,过程,点子等等都是透明的
12:全世界都有很多办公室,用最棒的人,不管他们在哪里

4 我现在对这条感触最深,这样的代码很好阅读,Review 都容易了. 我希望我们的公司也达到这点