要是代码不多的话,进展的速度会很快,要是每一次提交都审核的话耽误不起。
If there isn't much code, it evolves quickly, and can't afford the delay introduced by reviewing every checkin.
由于文档对chat机制介绍不多,因此它是进一步了解代码的很好起点。
As the chat mechanism is only lightly covered in the documentation, it's a good starting point for further code exploration.
清单1是相关代码和第一个测试(您一定明白编写单元测试的重要性,这里就不多说了)。
Listing 1 contains the code, as well as my first test. (I hope I don't need to convince you of the value of writing unit tests.)
随便说一句,所有这些任务需要的代码并不多,但是需要更多的解释,这是比较优雅的编程方式。
Incidentally, all of this takes longer to explain than to do in code, which indicates some fairly elegant programming.
另一方面,如果测试代码要进行对象分配工作(差不多所有的代码都要这样),那么垃圾收集器也肯定会运行。
On the other hand, if the test code does any object allocation at all (and nearly all code does), it's going to create garbage, and eventually, the garbage collector is going to have to run.
只写你需要写的代码,绝不多写。结果你的应用将更加精简和健康。
Write just the code you need and no more. Your app will be leaner and healthier as a result.
编写不多的几行代码,用于真正执行序列化过程。
Write the few lines of code that actually perform the serialization process.
RP使用的代码基本上与在 第 1部分 中看到的代码差不多,关于 RP内部原理的更多信息参见第 1 部分。
The code that the RP uses is essentially just like the code you saw in Part 1, so I refer you there for more information about RP internals.
允许您使用这么少的代码行创建如此复杂的GUI程序的编程语言并不多见。
Not many programming languages enable you to create such a complex GUI program in so few lines of code.
这是我们有的不多几个指标之一,因为我们假设如果代码满足项目,那么代码就合格了。
It is one of the few metrics we do have and since we make the assumption that if the code passes for the project, their code has passed muster.
而反对者则多纠缠于这类软件无法用于为数不多(但却实际存在)的禁止为给定代码段使用开源模型的情况。
Critics tend to focus on the impossibility of using the software in the rare, yet real, cases where there are prohibitions on using open source models for a given piece of code.
如果您对命令行接口使用得不多的话,这段代码看上去可能有点令人生畏。
This code might look a bit daunting if you haven't used the command-line interface much.
他们带着很多理论知识(其中一些是好的且有帮助的)离开了学校,但是对于如何编写好的代码却所知不多。
They come out of college knowing lots of theory (some of it good and helpful) but not very much about how to write good code.
在差不多一年前,我偶然发现了代码里的一些错误,让我直摇头说“怎么会发生这种事?!”
Over the preceding year or so, I had randomly found a few bugs in the code that made me shake my head and go “how did *this* happen?!”.
但是它是一个良好的开始,并且向您展示了,用不多的XQuery代码,就可以得到一组基本的描述文档文本内容特征的关键词。
But it's a good start and shows you that with a small amount of XQuery, it's possible to get a basic set of keywords characterizing a document's textual content.
Hello实用工具内容并不多,但是对于研究JAR文件却是一个很有用的“脚手架”,我们先从执行此代码开始。
The Hello utility isn't much, but it's a useful scaffold for exploring JAR files, starting with executing the code.
在我们的示例中,不需要suffix . py脚本,因为脚本结尾处重复的代码行并不多。
Is not necessary, because we don't repeat a lot of lines at the end of the scripts. But we do have to specify which page we will be loaded next?
尽管它们通常很快,但仍然需要差不多一秒钟的时间来把你的源代码编译成CSS,而你不得不等待这段时间才能预览到代码的效果。
Even though they are generally fast, it still takes a second or so to compile your code to CSS, which you have to wait for before previewing its result.
正是基于这一原因,用户手册和培训手册等工作直到对代码的测试都差不多了的时候才能开始。
For this reason, work does not start on the User Manuals and Training Materials until code based testing is well underway.
和CI类似,尽管许多人(超过40%)不使用CI服务器,但是差不多有60%的人表示在少数时间会使用CI,其中有32%的人总是在CI服务器上运行测试代码。
There's a similar story with CI, although many more people don't use a CI server - over 40%. Almost 60% of respondents use CI at least sometimes, of which 32% always run tests on a CI serve.
绿色线程固然有效率得多,调度得更快,而且还有一个好处是,写异步的代码跟写同步的样子差不多。
There are of course efficient green thread and coroutine implementations which allow you to write asynchronous code in a synchronous looking way – Eventlet for example.
因为情况差不多了,我们不会再添加很多代码,但是我们会添加三个新的接口,我会用一个更优雅的方法来管理接口id(通常的GUID)。
Inasmuch as we are not going to add a lot of code, but we will add three new interfaces, I will present a more elegant way of managing the interface IDs (in general, GUIDs).
因为情况差不多了,我们不会再添加很多代码,但是我们会添加三个新的接口,我会用一个更优雅的方法来管理接口id(通常的GUID)。
Inasmuch as we are not going to add a lot of code, but we will add three new interfaces, I will present a more elegant way of managing the interface IDs (in general, GUIDs).
应用推荐