很多时候,bug数按相对代码行的百分比进行计算。
Many times, bugs are computed in terms of the percentage of the lines of code.
需求、软件设计,甚至测试脚本与代码比较有相对短的预期寿命。
Requirements, software designs and even test scripts have relatively short life expectancies compared to code.
其实,这里的目标是要创建一个小型语言,这个语言能够允许用户来输入相对简单的代数表达式,然后这个代码来为它求值并产生结果。
In essence, the goal here is to create a small language that allows users to type in relatively simple algebraic expressions that this code will evaluate and produce a result.
例如,php名称空间的最佳实践之一是,在代码中使用绝对引用完全限定名称空间,而不是相对引用。
For example, it is a best practice with PHP namespaces to fully qualify your namespaces within your code using with absolute references rather than relative references.
本文提供的代码是相对简单的、使用GD的图像处理算法。
The code presented here is a relatively simple image processing algorithm using GD.
图2显示一个相对简单的用户界面;创建它需要的所有代码在清单1中,此时您所用是一些HTML。
Figure 2 shows a relatively simple user interface; all the code needed to create it is in Listing 1. All you have used at this point is some HTML.
修改模板来执行期望的内核代码相对也比较简单。
Modifying the template to execute the desired kernel code is relatively straightforward.
相对那些根本不执行某部分代码的测试而言,这本身就是一个进步!
Just by itself, that's a major advance over tests that never execute some code at all!
上面中的第一个在产品代码处于某种库控制形式时相对容易获得。
The first of these is relatively easy to obtain when the product code is under some form of library control.
给定先前定义的类,演示应用程序代码相对简短并且易于实现,如清单4所示。
Given the previously defined classes, the demo application code is relatively short and straightforward to implement, as shown in Listing 4.
当然,我们可以使用相对容易的粘合层达到该目标,而无需所谓的高度精良的零代码工具。
However, we could achieve that with the relatively easy glue layer, without the need of a high-sophisticated zero-coding tool.
行数更多的代码意味着更复杂,这样的原理相对简单。
The theory is simply that more lines of code imply more complexity.
创建这个表格的代码相对直观。
清单5和清单6中的代码相对较多,但它们设置了自动启动和停止任何类型服务器所需要做的操作。
Together, Listing 5 and Listing 6 are a fair bit of code, but they set the groundwork for automated the starting and stopping of any kind of server.
如果项目拥有的代码库相对较小或者所选测试很少,则可以使用现有代码库副本。
If the project has a relatively small code base or the tests chosen are few, the existing code base copy can be used.
代码生成方法的主要缺点是相对于其优点而言。
The main drawbacks of the code generation approach are the flip side of its advantages.
代码相对比较简单。
这些虚拟机实际上的确相对简单,但存在严重的性能问题—解释代码的时间总是会比执行本机代码的时间长。
These actually were relatively simple, but suffered from severe performance problems — interpreting code is always going to take longer than executing native code.
对于开发团队来说,这意味着诸如持续不断的代码集成和原型设计工作将变得更加便于执行,因为对产品更新和新代码的测试相对来说比较轻松。
For development teams, this means that things like continuous code integration and prototyping become more easily achievable, since product updates and new code can be tested with relative ease.
在清单2中,请注意,语境被表示为易于理解的名称(相对于很多代码页命名惯例)。
In Listing 2, notice that locales are represented as names that are easy to understand (as opposed to many of the code page naming conventions).
虽然连接到内存数据库会多花点时间,但代码相对要少很多,开发代价也小。
The trade-off is that connecting to an in-memory database will take little more unit test time, but there will be less code and development effort.
实现规程会受到AMDD方法的严重影响,这是由于相对于手动编码,会生成大量代码。
The implementation discipline is most significantly affected by the AMDD approach due to the amount of the code that may be generated as opposed to having to hand code it.
因为使用了这个不同的API,所以JiBX能够使用相对简单的代码来处理数据编出。
Because of this different API, JiBX is able to use relatively simple code to handle unmarshalling.
为了使维护简单,以下代码片段构建了缺省的WebSphereportal相对url所缺少的链接部分。
To ease maintainability, the snippet of code below builds the part of the link missing from the default WebSphere Portal relative URLs.
PlanetRDF聚集部分的代码相对比较简单,依次注册清单中的每一个rss提要,获取每个RSS条目的键值,并保存所有条目的变化。
The aggregation part of the Planet RDF code is relatively simple: it regularly polls each RSS feed in the list, derives a unique key for an RSS item, and stores changes to each item.
例如,Erlang包含一个非常简单的并发模型,允许在同一主机上相对轻松地多次执行代码块。
For example, Erlang includes a very simple concurrency model, allowing individual blocks of code to be executed multiple times on the same host with relative ease.
相对于前一个示例,此代码仅在一个地方进行了更改:放在环境Hashtable对象的provider_url键中的值。
The code only changed from the previous example in only one place: the values placed in the PROVIDER_URL key of the environment Hashtable object.
但是,本文展示了如何使用Ajax通过相对较少的代码为用户创建健壮的、友好的功能。
However, in this article we have demonstrated how Ajax can be used to create robust, friendly functionality for the user with relatively little coding.
如果输入使用相对名称空间限定符的代码,NetBeans会在最左边的代码空白边中显示一个灯泡图标。
If you key code that USES relative namespace qualifiers, NetBeans displays a light bulb icon in the left-most code margin.
由于AdobeFlex构建了XML支持(即使用ecmascript for XML (e4x)来解析数据),因此这种情况编写的代码相对较少。
Because Adobe Flex has built in support for XML (that is, it USES ECMAScript for XML (e4x) to parse the data), there is less code to write for this case.
应用推荐