The best code starts with tests.
最佳的代码从测试开始。
That's the best code review I've ever heard of.
这是我听说过的最好的代码复查。
It can ensure correct code, but not the best code.
工具只能确保代码正确,但不一定是最优的。
The best code is often the code you don't need to write and maintain.
最好的代码往往就是您无需编写并维护的代码。
The best code of ethics in the world is worthless if it's just filed away and never used.
世界上最好的道德规范仅仅存档,却从不使用,那才是无价值的。
As I mentioned in a previous post, PHP has some of the best code availability of any language.
正如我先前提过的,php是所用语言中代码重用性最好的。
DW: But you're the guy who taught the world that in the open source community the best code wins.
dW:但您告诉了世界,在开放源码社区中,最好的代码会获胜。
The analysis again pointed to the fact that the best code would be both simple and extensible.
分析再次指出一个事实:最好的代码是既简单又可扩展的。
In a special case, the error exponent of the best code is determined completely, and the result is not too complex.
特别是对于所谓的配称马氏信源,我们确定了最优码的误差指数,结果也比较简单。
There are also huge differences between devices with and without a JIT: the "best" code for a device with a JIT is not always the best code for a device without.
使用和不使用JIT的设备之间,是具有如此大的不同:使用JIT上最好的代码,在不使用JIT的设备上,常常不是最好的。
This example is not really the best code possible, since I might wrap a try/'except' around the connect() call, and perhaps a try/finally to assure conn.close() gets called.
上述示例代码还不是最佳的代码,因为我完全可以围绕connect()调用再放上一个try/'except',也可以再用一个 try/finally来确保 conn.close()被调用。
A caching system certainly doesn't have to be overly complex, but I've always been of the opinion that very often the best code you can write is the simplest code you can write.
一个高速缓存系统,当然不必过于复杂,但我一直相信,你经常能写出最好的代码,你可以写的最简单的代码。
Their tables will be set with the good dishes and silver, and the dress code will be Sunday-best.
他们的餐桌上将摆满精美的菜肴和银器,他们也会穿上最好的礼服。
Could you please advise on what is the best choice, what makes our code more reusable?
请您给出建议,哪个选择是最好的?哪个能使我们的代码有更好的复用性?
The dual approach of studying the code and using debugging tools is the best way to identify and fix problems.
结合研究代码和使用调试工具这两种方法是识别和修正问题的最佳方案。
You might think that compiling all the code statically is the best approach because it results in the largest amount of native code executing at run time.
您可能认为对所有的代码进行静态编译是最好的方法,因为可以在运行时执行最大数量的本地代码。
They have some of the best development tools in the world with capabilities, such as code completion and refactoring, that lean heavily on static typing.
他们有最好的开发工具,这些工具带有代码完成和重构等功能,这些都倾向于静态类型。
This will allow you to collect code quality metrics, and implement the same best practices across the development team, thus further improving the maintainability of your code.
这允许你收拾代码质量度量和在开发团队中实施相同的最佳实践,这样,更进一步地提高了代码的可维护性。
In the best scenario, unit tests are actually built before the code that is to be tested.
在最佳场景中,单元测试实际上是先于待测试的代码而构建的。
Now that you've learned these best practices for the process of code review, we'll discuss some social effects and how you can manage them for best results.
既然您已经学会了代码评审流程的最佳实践方式,那么我们接下来将会讨论一些社会效应,以及怎样管理它们以获得最佳的结果。
I won't go into all the details of the example code here; the best way for you to discover its intricacies is to experiment with it on your own.
这里我不再阐述示例代码的详细信息了;您想要发现它的复杂性,最好的途径就是自己去试验。
Before moving on to choosing the best operating environment, I'll examine the issues surrounding compiling the code on other architectures.
在开始选择最佳操作环境之前,我将先分析在其他体系结构上编译代码所涉及的问题。
The best programmers are the ones who are not only good at translating ideas into code, but who have the best ideas.
最好的程序员不仅仅擅长于编译代码,同时也应该拥有最好的想法。
Again, you can choose the method that works best for your code.
也可以选择最适合您的代码的方法。
Of course, the best time to ensure high-quality code is at the moment the code is being written, as this is the time you best understand how it is put together.
当然,确保高质量代码的最佳时机就是在编写代码时,因为在这个时期您最了解它的组织方式。
One of the best ways to find where the code for a feature you saw in the program resides is to use the grep command.
要找到您在程序中看到的某个特性的代码的驻留位置,最好的方法之一就是使用grep命令。
VB Migration Partner was the best, the chunk of code being migrated, compiled and ready to run in 2.5 hours.
VB移植搭档是最好的工具,代码块的移植、编译和运行总共只需25小时。
The best way to enjoy the book is to write some Erlang code as you go.
学习该书的最好方法是在您读的过程中写一些Erlang代码。
The best way to use the example code is to capture an empty script with the name read_and_write, then copy and replace it with the example script.
使用该实例代码的最佳途径是获取一个名为read_and _ write的空脚本,复制实例脚本来替代它。
But what about the more common case in which you have lots of code that isn't the best in the world?
但是,更常见的情况是您手中已经有许多并不完善的代码,在这种情况下应该怎么办呢?
应用推荐