This technique allows people to make necessary changes to a piece of code without going through the bottleneck of an individual code owner.
这种技术可以让人们对代码片段进行必要的更改而不用经过各个代码拥有者个人的瓶颈。
If not, you could always develop your own solution, or you might be able to customize an existing piece of code.
如果没有找到也没关系,因为您总是可以开发自己的解决方案,也可以定制现有的一段代码。
If I accept a malicious piece of code that wreaks havoc on my computer, whose fault is it?
如果我接受了一段恶意代码,其破坏了我的计算机,那又是谁的错呢?
This is the dream scenario because if we can identify a specific button, then we have a particular piece of code to examine.
这是一种想象的情形,因为如果我们可以标识出特定按钮,则需要检查特定的代码。
In the sample application, you took an unwieldy stylesheet and refactored it into a much smaller and more maintainable piece of code.
在示例应用程序中,您获取了一个笨拙的样式表并将其重构为一段更小更易于维护的代码。
At this point, you have taken your simple piece of code and written a couple of client applications for it.
这时,您已经使用了您的一段简单的代码并为其编写了几个客户机应用程序。
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是,在写项目代码之前,你写一段简单的代码来测试你假设的项目代码,以获得预期的反应。
Sometimes these tools will not measure the performance of some particular piece of code in the way you want.
有时,这些工具不会以您想要的方式测量某些特定代码段的性能。
Listing 2 shows a piece of code that results in a compile-time error because the copy constructor is private.
清单2显示了产生编译时错误的代码部分,因为该拷贝构造函数是私有的。
With all of the benefits of migrations, you'd expect a complex piece of code, but they are incredibly simple.
迁移有这么多好处,您可能以为会有复杂的代码段,但实际上它们出奇的简单。
As before, the above piece of code contains all of the logic that is needed to identify unused imports within a source file.
在以前,代码的以上部分包含了一个源文件内识别未使用导入所需要的一切逻辑。
Being able to reuse SAX handler is great, but it is a somewhat complicated piece of code.
能够重用SAX处理程序是非常不错的,但其代码稍微有些复杂。
To begin, you must understand that an action is a piece of code that implements a predefined interface.
首先,您必须了解操作就是用来实现预定义接口的一段代码。
The ramifications of changing a simple piece of code can be magnified if that change impacts multiple departments, for example.
例如,如果更改影响到多个部门,则更改一个简单代码段的后果会扩大。
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.
这看起来有点奇怪,但是先听我说,实际上我给了你们一段做这件事的代码,就是发给你们的纸张的下一段。
Validation is also more maintainable when you clearly specify the responsibility of each piece of code.
如果清晰划分了不同代码的职责,验证也容易维护。
Efficiency: the longer you are away from a piece of code, the more likely you are to forget some of the details.
效率:越长时间不接触到你的代码,你越有可能忘记其中的部分细节。
It's the piece of code we wrote for computing square roots, square roots of actually perfect squares.
,这是我们写的计算平方根的代码,计算完全全平方根的。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
Let's look at a piece of code taken from this method, which you can see in Listing 8.
让我们看看来自此方法的一段代码,参见清单8。
The Web server plug-in is, by necessity, a small, portable piece of code.
Web服务器插件必须是一小块可移植的代码。
When I run this piece of code, it displays 307 methods!
当我运行这段代码时,它显示了 307种方法!
With this approach, you can validate many different kinds of data with a single piece of code.
通过这种方法,就可以用一块代码来验证很多不同类型的数据。
One piece of code might have 10, 50, or more annotations.
一段代码可能会有10个、50个或更多的注释。
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.
因为可以重新使用此段代码,所以执行数据类型转换是一项常见任务。
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给出了一小段用来设置数据布局面板成为不可见的代码。
应用推荐