需求:更好的代码审核工具
因此如果做的对,那么代码审核就非常值得。
封闭的审核过程:所有代码审核者都是Google员工。
代码审核还会帮助程序员相互传授有用的技术,方法,风格等。
Code reviews also help programmers educate each other about useful techniques, methods, styles, etc.
致力于编写良好的代码是极为重要的,包含代码审核和后续的检查过程。
An absolute dedication to well-written code is Paramount, including procedures for code auditing and continued checks.
尊重代码审核的目的是确保代码的质量,不是为了显示出谁比谁高明。
Be respectful. The objective of the review is to ensure code quality, not figure out who is smarter than whom.
代码审核是通过阅读别人的代码,来寻找错误,提出改进意见等的过程和实践。
Code review is the process and practice of reading over code written by someone else in order to detect errors, suggest improvements, etc.
一种选择是在OpenJDK6的升级工作空间内重做所有的代码审核和障碍清理工作。
One alternative was redoing all the code auditing and clearing of encumbrances on the 6 update workspaces.
不要以为批评是针对你本人代码审核是要改进代码,不是要刺伤(或者是提升)你的自尊心。
Don't take criticism personally. Code reviews are about improving code, not about bruising (or boosting) egos.
十个100行的代码审核要比一个900行的来得轻松得多,拆分着做会节省很多寻找修正bug的工作量。
Ten 100-line code reviews are much nicer to do than one 900-line one, and doing it that way will save a great deal of work finding and fixing bugs.
我想学术研究组织会从代码审核上受益良多,当然随之而来的:良好的代码实践,一致的代码风格,坚持单元测试。
I think academic research groups would gain a lot by using code reviews, and of course the things that go with them: good coding practices, a consistent style guide, insistence on unit tests.
当然一次优秀的代码审核也是相当耗费时间的,因此需要有一定标准把大的修改变成许多小修改,生成更多友好的代码片段。
It also takes a lot of time to do a good code review, so it's standard practice to break large changes into smaller, more review-friendly pieces.
其中的一些设计原则,如代码审核、加密处理的广泛使用以及仔细的配置选择,它们组合在一起可以确保实现OpenBSD的缺省安全的思想。
Design principles, such as code auditing, extensive use of encryption, and careful configuration choices, combine to ensure OpenBSD's secure by default philosophy holds true.
这是一件在产业开发者的世界中一件非常正常的事情,但是我此前才学术界从来没有听说过哪个学术组织在使用代码审核,在我加入Google之前我自己也从来没有做过。
This is pretty standard fare for developers in the "real world", but I have never heard of an academic research group using them, and had never done code reviews myself before joining Google.
具备良好技术技能的任何人都可以创建体系结构图、编写和审核技术设计,甚至编写一些代码。
Anyone with good technical skills can create architecture diagrams, write and review a technical design, or even write some code.
如果代码有跨平台的要求,那么跨平台性也要纳入审核范围。
Auditing should also ensure that the code is cross-platform when it needs to be.
就像任何开发项目一样,人们必须对代码的质量负责,并在必要的时候进行审核。
Just as with any development project, people must be responsible for the quality of the code and for getting reviews when necessary.
然后,如果概念被接受,那么成果会在集成到主代码库之前再审核。
Then, if the concept is accepted, the result is reviewed again before integration into the main code repository.
要是代码不多的话,进展的速度会很快,要是每一次提交都审核的话耽误不起。
If there isn't much code, it evolves quickly, and can't afford the delay introduced by reviewing every checkin.
该方法提供了一种不仅快速而且简单的方法来收集来自审核日志的信息,而不必付出编写特定应用程序代码的艰辛。
This method provides a quick and easy way to gather information from the audit log without the effort of writing specific application code.
只要一个项目的开发者多于一个人,那么立即开始相互审核代码。
As soon as there is more than one person working on a project, start reviewing one-another's code.
没有代码的审核,总是会有质疑存在的。
Without public scrutiny of code, there will always be suspicions.
在审核完代码后,OpenBSD的创建者TheodeRaadt得出如下结论:在这个开源操作系统中并不存在这种威胁。
After auditing the code, Theo DE Raadt, the founder of OpenBSD, has concluded that there are no such threats in the open source operating system.
因此如果FindBugs是bug模式检测器,那么它理所当然可以用作审核工具,衡量代码与一组设计原理的符合程度。
So if FindBugs is a bug pattern detector, it stands to reason that it can also serve as an auditing tool to measure the degree of compliance with a set of design principles.
我很高兴地说,随着FindBugs的引入,在自动代码检测和审核工具方面已经取得重大进步。
I'm happy to say that the state of automated code-inspection and auditing tools has gotten significantly better recently with the introduction of FindBugs.
用什么样的风格做项目,只要适合就好,但一定要养成审核代码和让人审核代码的好习惯。
Use whatever pattern fits the project, but get into the habit of reviewing code and asking others to review yours.
用什么样的风格做项目,只要适合就好,但一定要养成审核代码和让人审核代码的好习惯。
Use whatever pattern fits the project, but get into the habit of reviewing code and asking others to review yours.
应用推荐