The reason I like this code is because it is simple to use (only 1 line), and gives you some control over your own namespace.
我喜欢该代码的原因是它简单易用(只有1行),并且能够让您在某种程度上控制自己的名称空间。
Listing 3 gives the code for the pair of classes holding directory and file information.
清单3给出了包含目录和文件信息的一对类的代码。
It shows code samples illustrating the problem and also gives detailed information on avoiding, detecting, and fixing the problem.
它显示了阐明问题的代码样例,也给出了关于避免、检测和修复问题的详细信息。
The supplied code again gives the actual implementation of both the service and a test client.
附带的代码再一次给出了服务和测试客户机的实际实现。
The dynamic language gives my seasoned developers more power and flexibility, while also letting them express more powerful ideas with fewer lines of code.
动态语言为经验丰富的开发人员提供了更多的能力和灵活性,同时也使他们能够利用更少的代码表达更强大的思想。
Compiling and running the Listing 1 code using JDK 5.0 gives the output shown in Listing 2.
使用JDK 5.0编译并运行清单1代码会给出清单2中的输出。
Measuring code coverage gives you the information you need to find and fix bugs, producing more robust software for everyone.
测量代码覆盖率使您可以获得寻找并修复bug所需的信息,从而开发出对每个人来说都更健壮的软件。
Call with continuation gives you a code block, and the continuation (or a saved call stack, with instance variables), which you assign to a variable.
用continuation进行调用使您获得一个代码块和指派给变量的continuation(或已保存的调用堆栈,其中有实例变量)。
Although real applications won't be that short, Libglade gives you tremendous gains in terms of the legibility, modularity, and maintainability of your code.
虽然真正的应用程序不会这么短,但是从代码的清晰性、模块性和可管理性来说,Libglade带来了巨大的提高。
And even if you argue that writing elegant code gives you a better chance at getting the solution sooner, I know of no studies done on this.
即使您争辩说编写优雅的代码可能会让您更快地解决问题,但是我想现在还没有研究这个问题的学科。
The number of calls to the objects and the number of lines of code that must be execute to achieve the desired result gives us an idea of the serious processing required to achieve the desired result.
对于这些对象的调用数目,以及为取得期望结果必须执行的代码行数,让我们了解要取得期望结果需要进行多么重大的处理。
Running the tests early and often gives you absolute confidence in your code all the time.
尽早运行测试通常使您在任何时候都对代码充满信心。
This article shows all the code necessary for both examples, and it gives line-by-line explanations.
文章还显示了这两个例子的所有必要代码,并逐行解释它们。
The first fragment gives code for reading the document, calling the modify code, and writing the modified document.
第一段是读取文档、调用修改代码和编写已修改文档的代码。
The test now gives us the same feedback in fewer lines of code and we have laid the groundwork for much cleaner foundation to build on for future tests.
现在使用更少的代码就能得到相同的反馈,我们甚至打下了更简单的基础,有利于进一步测试。
Listing 9 gives the output generated by using the Listing 8 code to analyze the full structure of the code from Listing 1, Listing 2, and Listing 3.
清单9给出了用清单8中的代码分析清单1、清单2和清单3中代码的完整结构所生成的输出。
This demanding, artificial code is what gives engaged, passionate and all-too-fallible human beings the collective power to produce results that are dispassionate, objective and reliable.
这要求人造的规范给这些忙碌的,热情而容易犯错的人类以集体的力量,而使的最后的结果是冷静客观及值得信赖的。
I'm currently 31, but I'll be 32 later this month (as I wrote this code, it was March) and my algorithm gives me the wrong result.
我现在31岁,但这个月再过几天我要32岁了(但我写该代码时,是3月份),我的算法造成错误的结果。
But as programs become more complex, recursive programming gives the programmer a better way of organizing code in a way that is both maintainable and logically consistent.
不过,随着程序越来越复杂,递归程序设计能够让程序员以可维护且逻辑一致的方式更好地组织代码。
This approach gives you the best of both worlds by allowing you to write JRC code and by allowing the use of reports based on JNDI technology.
这个方法能够最好的允许您编写JRC代码并且通过允许使用基于JNDI技术的报告。
Sure, it's nice when the language gives you features like generics to make things easier, but often code generation is a necessary — and extremely productive — task.
当然,当语言可以为我们提供可以简化任务的特性时,一切都是那么美好;不过代码生成通常都是一个必需——通常其生产率也非常高——的任务。
Keats says being able to see the software's source code, or computer language code, and being able to rewrite or make changes gives users a sense of ownership.
济慈说软件源代码或电脑机器码可见性,以及软件可以任意重编或修改,这些都能使用户产生自主感。
It supports both put and get, and gives your code complete access to the HTTP request header, including the UserAgent field.
它支持put和get,并且使您的代码具有对HTTP请求标头的完全访问权,包括useragent域。
Spring gives me better leverage by providing glue code that takes away the cumbersome repetitive resource management, configuration, and grunt work similar across my applications.
Spring通过提供胶水代码,消除麻烦重复的资源管理、配置和应用程序中的繁重工作,使我得到更多的优势。
Uname -u gives the plant code and machine identifier.
uname- u给出厂家代码和计算机标识符。
One of the key features of Sass is its indentation-based syntax, which gives you curly-brace and semi-column free code.
Sass的一个关键特性是缩进式的语法,这种语法可以产生柱式外观的代码。
This sample code below gives an example to get the value and then set another value to the notes.ini variable.
以下示例代码给出一个示例,将获取值并将 notes.ini 变量设为另一个值。
As you can see in the other examples, uname -u gives the plant code and the machine sequence number to better identify a system.
正如您在前面的示例中所看到的,uname- u给出了厂家代码和计算机序列号,以便更好地标识一个系统。
PortletUnit gives you the capability to do unit tests on code and to execute the portlets without deploying them to a server.
portletUnit能够让您在代码上执行单元测试,且在不将它们部署到服务器的情况下执行portlet。
While I'm at it, I'll make some other changes to improve the usability of the code and make it more flexible for my testing. Listing 4 gives the modified code in its entirety.
在改的时候,我还做了一些其他改变以改进代码的易用性,并让测试更灵活。
应用推荐