When I run this piece of code, it displays 307 methods!
当我运行这段代码时,它显示了 307种方法!
One piece of code might have 10, 50, or more annotations.
一段代码可能会有10个、50个或更多的注释。
Listing 4 gives the next piece of code for the transform method.
清单4给出了转换方法的下一段代码。
The Web server plug-in is, by necessity, a small, portable piece of code.
Web服务器插件必须是一小块可移植的代码。
Listing 6 gives a piece of code, which sets the data layout panel invisible.
清单6给出了一小段用来设置数据布局面板成为不可见的代码。
What is the most exciting piece of code (that you know of) ever written in Bash?
(您知道的)用Bash编写的最令人激动的代码是什么?
It's a reusable piece of code related to what gets displayed in the Web browser.
它是与Web浏览器中显示的内容相关的一个可重用代码段。
And I think this is best illustrated by giving you a simple little piece of code.
我认为给你看一段简单的代码,可以很好的说明这个问题。
Let's look at a piece of code taken from this method, which you can see in Listing 8.
让我们看看来自此方法的一段代码,参见清单8。
Being able to reuse SAX handler is great, but it is a somewhat complicated piece of code.
能够重用SAX处理程序是非常不错的,但其代码稍微有些复杂。
Scenario 5: a developer sits down to maintain a piece of code that he didn't develop.
情况5:开发人员坐下来维护不是他们开发的一小段代码。
Occasionally, multiple pairs of programmers may be working on the same piece of code.
偶尔,多个程序员对会处理同一段代码。
If I accept a malicious piece of code that wreaks havoc on my computer, whose fault is it?
如果我接受了一段恶意代码,其破坏了我的计算机,那又是谁的错呢?
Performing the data type conversion is a common task, so this piece of code can be reused.
因为可以重新使用此段代码,所以执行数据类型转换是一项常见任务。
So I'm going to comment those out, and let's go down to this piece of code, and uncomment it.
那么我会把这些注释上,让我们看看这段代码,取消注释。
With this approach, you can validate many different kinds of data with a single piece of code.
通过这种方法,就可以用一块代码来验证很多不同类型的数据。
This piece of code is vulnerable to XSS attacks because no check is made to validate the input.
这段代码很容易受xss攻击,因为没有进行任何的输入验证。
We want to write a piece of code that helps these guys out, so I'm going to show you an example.
通过写一段代码,来解决一个这样的问题,接下来让我们来看个例子。
It's the piece of code we wrote for computing square roots, square roots of actually perfect squares.
,这是我们写的计算平方根的代码,计算完全全平方根的。
Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.
现在我要把这段代码,复制到,大文件中的各个部分。
To begin, you must understand that an action is a piece of code that implements a predefined interface.
首先,您必须了解操作就是用来实现预定义接口的一段代码。
Validation is also more maintainable when you clearly specify the responsibility of each piece of code.
如果清晰划分了不同代码的职责,验证也容易维护。
All right, you can see that this little piece of code, it's got a loop in there, and what's it doing?
好,你们看到的这一小块代码,是做了一个循环吧?,他在做什么?
In open source, much of the collaboration is structured around a very tangible thing: a piece of code.
在开放源码领域,许多协作都是围绕非常具体的东西建立起来的,譬如一段代码。
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显示了产生编译时错误的代码部分,因为该拷贝构造函数是私有的。
At this point, you have taken your simple piece of code and written a couple of client applications for it.
这时,您已经使用了您的一段简单的代码并为其编写了几个客户机应用程序。
If not, you could always develop your own solution, or you might be able to customize an existing 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.
效率:越长时间不接触到你的代码,你越有可能忘记其中的部分细节。
For example, one piece of code that runs in 10 seconds can optimized rather easily to run in less than a second.
例如,一段运行时间为10秒的代码很容易优化为在1秒内运行。
应用推荐