如果你已经测试了每一行代码你会怎么做?
How could you if you have tested virtually every line of code?
接下来,我们将详细分析这些步骤中的每一步,包括代码例子。
Next, we'll look at each of these steps in detail, including code examples.
一方面,存在测试妄想狂,他们希望能测试自己写的每一行代码。
On one side we have the testing fanatics, who want to test every single line of code they write.
您可以在定义XML文件上为每模种模式接编写HTML片段代码。
You can write HTML fragment code for each mode in the definition XML file directly.
我看到过一篇统计,指出一般的程序员在每10行代码中会出现一个错误。
I have read a statistic that says a typical programmer writes a bug for every 10 lines of code.
每发现一个匹配对象,就会执行一个动作(代码块)。
Everywhere a match can be found, an action (code block) can be executed.
最近研究显示,平均起来,开发者在每一千代码中有100到150个错误。
Recent studies show that, on average, developers make 100 to 150 errors for every thousand lines of code.
此外,开发人员需要对每一行代码刨根知底,以确定是否需要保护它们,因为过度同步与过少同步同样有害。
What's more, developers have to reason about each and every line in the code, looking to see if it needs to be protected because too much synchronization is just as bad as too little.
应用程序的可靠性可通过每千行代码中识别出的错误数来衡量。
Reliability of an application can be measured as the number of bugs identified per 1000 lines of code.
重量级检查平均花费的时间是每 200行代码9 个小时。
The average heavyweight inspection takes nine hours per 200 lines of code.
set_trace_func允许设置Ruby回调函数或者Proc,它们在每一行Ruby代码执行的时候都会被调用一次。
set_trace_func allows to set Ruby callback function or Proc, which is invoked every time a line of Ruby code is executed.
清单9的代码应该在cron中每5分钟执行一次。
The code in Listing 9 should be run from cron every 5 minutes.
lcov工具会生成一棵完整的HTML 树,其中包含有内核中代码的每一行以及关于每一行执行了多少次的数据(如果有的话)。
The lcov tool generates an entire HTML tree that contains every line of code in the kernel and data on how many times, if any, each line was executed.
如果应用程序的可见的,在代码执行中就可以单步调试每一行代码。
If the application is visible, you can step through each line of code as it runs.
你增加到基础结构的每一行代码都是你需要维护的另一行代码。
Every line of code that you add to the infrastructure is another line of code that you have to maintain.
如果我们对每一行代码都考虑这些问题,那么所有的代码都会变得易于修改。
If we do this for all the code, it makes all the code easy to change.
假设您了解缓冲区溢出问题的存在,则您也不得不检查每一行代码以发现这个特殊的漏洞。
You also have to review every line of code to find this particular hole, assuming you understood that it existed.
正如您所看到的那样,封装代码看上去复杂,所以我们感谢代码生成器为我们编写的每一行。
As you can see, the wrapping code can look complicated, so we thank the code generator for every line it writes for us.
我不会讲述每一行代码、每一个中间步骤以及每一个硬件细节;那需要一本书来讲解,而且到您读到它的时候,它已经过时了。
I won't cover every last line of code, every intermediate step, or every detail of hardware; that would take a book and would be obsolete by the time you read it.
平均起来,开发人员在他们写的每千行代码中会产生100到150个错误。
On average, developers make 100 to 150 errors for every thousand lines of code they write.
每一块重复的代码都使得程序逻辑中出现错误的几率增加。
Each block of repeated code increases the chances of introducing an error into the logic.
真正花大量时间在你将提交的每一行代码上,并设法确保你的代码不仅是能运行的,而且是高质量并高效的使用内存的。
Really spend a lot of time on any code you may send in and make sure it not only works but it's high quality and memory efficient.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
代码的每一行,都应恰如其分地展现出其原有目的。
Each line of code serves its purpose and resides in the right place.
事实上,最优秀的软件工程师是工匠,他们能把能量、独创性和创造力融入到每一行代码中。
In truth, the best software engineers are craftsman, bringing energy, ingenuity, and creativity to every line of code.
整个样式表中每行和每列都有重复的代码。
The code for each row and column is repeated throughout the stylesheet.
它提供了一系列工具用来显示内存泄漏和性能瓶颈,并提供对每一行代码进行代码覆盖的策略。
It offers a suite of utilities that exposes memory leaks and performance bottlenecks, and provides code coverage statistics down to individual lines of code.
现在,我来介绍一下该程序的汇编语言版本,此外,我还会对每一行代码的含义做详细的解释。
Now I'll enter in the assembly language version of this program and then discuss what each line means.
在你写下每一行代码之前,你应该对你要在那行代码中所抽象的现实世界的一个片段有合理、深入地理解。
Before you write a single line of code, you should have a reasonably deep understanding of what particular piece of the real world you are attempting to model in that code.
一般来说,剖析代码意味着确定计算机在代码的每一部分所花费的时间。
In general, profiling your code means determining how much time the computer spends in each part of your code.
应用推荐