I want to do little piece of code that's going to do planar geometry.
我想写一小段代码来做平面几何。
Why is this piece of code there?
这段代码是做什么用的?
If I accept a malicious piece of code that wreaks havoc on my computer, whose fault is it?
如果我接受了一段恶意代码,其破坏了我的计算机,那又是谁的错呢?
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
You took an ordinary piece of code and exposed its methods across a network.
您采用了一段普通的代码,并通过网络公开了它的方法。
Sometimes these tools will not measure the performance of some particular piece of code in the way you want.
有时,这些工具不会以您想要的方式测量某些特定代码段的性能。
Being able to reuse SAX handler is great, but it is a somewhat complicated piece of code.
能够重用SAX处理程序是非常不错的,但其代码稍微有些复杂。
Let's work through a simple example of writing a piece of code unobtrusively.
下面我们来逐步检查以低调的方式编写一个代码的简单示例。
Listing 4 gives the next piece of code for the transform method.
清单4给出了转换方法的下一段代码。
This seems a little weird, but bear with me for second, in fact, I've given you a little piece a code to do it, which is the next piece of code on the hand out.
这看起来有点奇怪,但是先听我说,实际上我给了你们一段做这件事的代码,就是发给你们的纸张的下一段。
This is the piece of code that determines what the tokens are.
这是一段确定标记为什么的代码。
The maintainability of a piece of code is arguably a matter of subjectivity.
一段代码的可维护性是个主观的问题。
Listing 3 has the first piece of code for the transform method.
清单3是转换方法的第一段代码。
The result generated by this exciting piece of code looks like this.
这一段令人兴奋的代码生成的结果如下所示。
As you can see from this piece of code.
如您从这段代码中看到的。
单元测试的目的是测试一段代码的运行结果是否正确。
When I run this piece of code, it displays 307 methods!
当我运行这段代码时,它显示了 307种方法!
It could be, what's the intuition behind this piece of code.
注释可以是,在这片代码后面,直觉是什么是。
With this approach, you can validate many different kinds of data with a single piece of code.
通过这种方法,就可以用一块代码来验证很多不同类型的数据。
The goal should be that no one on the team can recognize who wrote which piece of code.
目标应该是团队中没有人辨认得出是谁写的哪一部分代码。
One piece of code might have 10, 50, or more annotations.
一段代码可能会有10个、50个或更多的注释。
If you think a piece of code is confusing, write unit tests for it.
如果你觉得一段代码难于理解,那么就写一个单元测试。
Would others benefit from reusing this piece of code?
反复使用这段代码对其他代码有好处吗?
In open source, much of the collaboration is structured around a very tangible thing: a piece of code.
在开放源码领域,许多协作都是围绕非常具体的东西建立起来的,譬如一段代码。
Performing the data type conversion is a common task, so this piece of code can be reused.
因为可以重新使用此段代码,所以执行数据类型转换是一项常见任务。
Can you quickly think of ways that this piece of code might be customized?
您是否能很快地想出定制这段代码的方法吗?
Line 26 is the important piece of this code.
第26行是这段代码的重要部分。
This example shows an internal method and assumes some other piece of code has identified the dispenser object.
这个例子显示了一个内部方法,并假设另一个代码段识别了分发器对象。
Listing 6 gives a piece of code, which sets the data layout panel invisible.
清单6给出了一小段用来设置数据布局面板成为不可见的代码。
And I think this is best illustrated by giving you a simple little piece of code.
我认为给你看一段简单的代码,可以很好的说明这个问题。
应用推荐