Code coverage is a way of seeing how much code is covered by a set of tests.
代码覆盖是一种查看一套测试覆盖了多少代码的方法。
Isn't it amazing how much code the compiler actually generates for such a tiny program?
对于这么一个小的程序,编译器生成了这么多的代码,真的很令人惊异!
You have not had to add much code to customize your application to handle all your use cases.
您不必添加很多代码来自定义应用程序以处理所有用例。
The most effective way to do less work in methods is move as much code as possible out of loops.
要减少方法中执行的工作,最有效的方法是尽量将代码移出循环。
A method without much code and with no loops at the top of a profile is probably being called very frequently.
如果一个只有少量代码并且不包含循环的方法位于配置文件的顶部,那么它可能正被频繁调用。
So how do you decide how much code or how many classes go in one assembly?
那么,你决定一个程序集中放多少代码或者多少类呢?
Although there isn't much code here, quite a lot is going on. Let's step through the important parts.
尽管这儿没有太多代码,但已经发生了许多事情。让我们一步步浏览这些重要的部分。
I prefer to reuse as much code as possible to minimize the amount of bugs that get introduced into the process.
我倾向于尽可能重用原来的代码,以便减少这个过程可能引入的bug数量。
In larger companies, it's easy to slip into the bad habit of building in too much code to handle future requirements.
在大公司里,很容易陷入构建太多代码来处理未来需求的坏习惯。
Do you think that the original designers of Struts ever dreamed how much code would be required to handle parameters?
您认为Struts的原设计者曾经想到过处理参数所需的代码有多少吗?
Fortunately, you do not have much code to write and you can use one of the WebSphere TX SDK examples as a starting point.
幸运的是,您不需要编写太多代码,可以将一个WebSphereTXSDK示例作为起点。
That might have seemed like a practical solution then but imagine how much code it would take to test an interaction like this.
那看上去像是一个实用的解决方案,但是你想像一下测试这样的交互行为,会写多少代码。
But when each statement includes too many choices and too much code, it could be an indication of code that needs to refactored.
但当一个语句包含太多的选择和代码时,它就可能暗示有需要重构的代码。
Open source solutions also enable you to assemble software applications quickly, because you don't need to write as much code anymore.
开源解决方案还可以帮助您迅速组装软件应用程序,因为您不再需要编写大量代码。
But at some point, before too much code gets written, it is important to draw a line in the sand and create a requirements baseline.
但在某些点上,在编写大量代码之前,必须划清界线,建立需求的基线。
If you think about this you will realize that you simply cannot write very much code at all without compiling and executing something.
仔细想想,就会发现如果不是为了编译或者执行某些东西,你根本不能编写任何代码。
The best way to test mobile applications is to write specs for as much code as possible and to try to minimize the need for manual testing.
测试移动应用最好的方式是为尽量多的代码写测试代码,尽可能最小化手工测试的需要。
By using open source tools, frameworks, and even solutions, companies can assemble software applications quickly because they themselves don't need to write as much code.
通过使用开源工具、框架甚至是解决方案,公司可以迅速地组装应用程序,因为他们自身不需要编写大量代码。
A good development practice is to move as much code as possible into reusable routines, functions, classes, or components, which can be grouped into libraries or frameworks.
一种好的开发实践是将尽量多的代码移入可重用的例程、函数、类或组件,而这些例程、函数、类或组件均能划分到库或框架中。
By leveraging open source tools, frameworks, and even solutions, companies can assemble software applications quickly because they themselves don't have to write as much code.
通过利用开源工具、框架甚至是解决方案,企业可以快速地组装应用程序,因为企业自身不需要编写大量代码。
In your own applications, these are the only real cases where you'll need to write much code specific to Tapestry: when events related to the display occur that must modify business objects.
在您自己的应用程序中,这是惟一真正需要编写许多特定于Tapestry的代码的地方:当与显示有关的事件发生时,必须修改业务对象。
You'd think that twice as much code would make your software only twice as complex. But actually, each time you increase the amount of code, your software grows exponentially more complicated.
你或许认为编码量加倍软件复杂性也相应加倍,但实际上,每增加一些编码,软件的复杂性就随之指数式增长。
You'd think that twice as much code would make your software only twice as complex. But actually, each time you increase the amount of code, your software grows exponentially more complicated.
你或许认为编码量加倍软件复杂性也相应加倍,但实际上,每增加一些编码,软件的复杂性就随之指数式增长。
应用推荐