根据这个指标,TDD版本比后测试代码简单三倍。
Gauging by this measure, the TDD version is more than three times simpler than the test-after code.
一开始看来,用这种方法表示一个空链表使代码简单。
It may at first appear that representing empty lists in this way makes the code simpler.
结果仍然和图3相同,只不过代码简单得多了。
The result is still identical to Figure 3, shown above -- it's just that the code is far simpler.
或许您会想到,这应该比像下面这样传递整型代码简单。
Perhaps it occurred to you that it would be simpler to pass in the int codes like this.
由于所有的代码简单,你将能够在大的开发团队胜任大的项目。
You will be able to work in large development groups and large projects since all the code is stupid simple.
我们选择该示例是为了使示例代码简单,并把注意力集中在如何使用缓存。
However, we chose this example to keep the sample code simple and to concentrate on how to use caching.
尽管不要求按照特定的次序,但是坚持这个次序有好处,可以保持代码简单。
While there is no specific sequence required it has some advantages to stick to this rundown to keep the code simple.
交换通道可以循环读取文件对象中的行。这是内存操作的效率,快速,代码简单。
An alternate approach to reading lines is to loop over the file object. This is memory efficient, fast, and leads to simpler code.
和ADB取消包装代码类似,理解和使用服务调用的取消包装形式比使用直接代码简单得多。
As with the ADB unwrapped code, it's much easier to understand and work with the unwrapped form of the service calls than with the direct code.
这个接口使实现代码简单了——在处理字节码时这总是一个优点——但是也意味着实现类是非常特定的。
This interface keeps the implementation code simple — always an advantage when working with bytecode — but means that the implementation class is very specific.
想要管理应用程序代码简单不过,这样的系统很多。但是对于存储过程和触发器来说,这样的系统并不存在。
It is easy to control all changes to application code by running it through a proper version control system, but those facilities do not exist for stored procedures and triggers.
通过在计算机上的模拟测试,证明该算法对网络病毒具有较高的检测精度与速度,且运算开销小,代码简单,可以嵌入到网络设备中。
Simulation experiments indicate that the algorithm has the higher detecting accuracy and speed and spends less system resources, and can be embedded into network devices for its simple codes.
如果我们能有一个清爽的、能把功能和代码简单联系起来,并且抛弃他们的主要问题(不要提降低美观的要求)的良结构的菜单,那会怎么样?
What if we could have one clean, well-structured menu which would combine the dynamism and code-ease of dropdown menus and do away with their main problems (not to mention degrade beautifully)?
清单1中的代码简单地对提供的URL执行了HTTPGET操作,请求 PROVIDER_CATALOG或者 SERVICE_DESCRIPTION 可接受的内容类型。
The code in Listing 1 is simply performing an HTTP GET operation on the URL provided, requesting the acceptable content types of either a PROVIDER_CATALOG or SERVICE_DESCRIPTION.
现在,您已经创建和应用了中介,您需要安装实际的中介代码——简单的工作。
Now that you have created and applied the mediation, you need to install the actual mediation code -- a simple job.
接下来的一层抽象需要更多的设置工作,但是最终客户机的代码可就简单得多了。
This next level of abstraction requires a bit more setup, but the resulting client code is much simpler.
随着设计模式的发明,而且从设计模型中产生代码非常简单,所以复用设计便成为一种理念。
With the invention of design patterns, the idea is to reuse designs since it's easy and inexpensive to generate code from design models.
生成的代码相当简单,修改其行为以及添加检验功能和额外的处理也很容易。
The generated code is relatively simple and modifying its behavior, as well as adding validations and extra processing, is easily understood.
让我们查看一个利用清单2中所示的数据访问代码的简单应用程序。
Let's look at a simple application that leverages the data-access code shown in Listing 2.
代码非常简单,但是您将看到它做了非常多的工作。
The code is very simple, but it does an impressive amount of work, as you shall see.
这个类将包含所有直接处理HSQLDB的代码,并使分配的扩展代码保持简单。
This class will contain all code that deals directly with HSQLDB, keeping the contributed extensions code simple.
服务器端语言使用的是PHP,但服务器端代码很简单。
PHP is used for the server-side language, but the server-side code is fairly simple.
完成这个任务的实际代码非常简单,如清单5所示。
The actual code for this turned out to be embarrassingly simple. See for yourself in Listing 5.
但是开发能更改页面的代码很简单,而且还可以对代码进行测试直到它能很好地工作为止。
But developing the line of code that changes the page is simple, and variations of the code can be tested until it works perfectly.
如果针对单一的公共主干代码,简单的时间戳或是自增长版本号也就够了。
If you are using a single public branch a simple timestamp or auto-incrementing version number would be sufficient.
最后当你拿到他干的活儿时,里面可能就20行实际代码,简单易读。
But when you get the project it will only be 20 lines of actual code and will be very easy to read.
如果认为要编写的代码很简单,我们会抄近路。
If we think the code we're about to write is simple, we tend to cut corners.
用于生产这个小部件的HTML代码出奇地简单。
The HTML code to produce this widget is surprisingly Spartan.
虽然这里提供的代码相当简单,但却是对传统方式的巨大修改。
While the code presented here is fairly straightforward, it's a big change from the traditional approach.
虽然这里提供的代码相当简单,但却是对传统方式的巨大修改。
While the code presented here is fairly straightforward, it's a big change from the traditional approach.
应用推荐