The listing below shows how the code works.
下面的清单向我们展示了代码是如何工作的。
First, I'm using assertions to prove that the code works as expected.
首先,我使用断言证实代码符合预期。
A graduate developer, Jerry, asked me, "How will I know that my code works?"
一个刚毕业的开发人员,Jerry,问我:“我怎么才能知道我的代码是正确的?”
Certainly it is not necessary to run every example to be sure that the code works.
当然,没必要把每个用例都跑一遍来确保代码工作正常。
So, the only way in which we know that your code works is through the user interface.
所以,我们判断你的代码是不是正确的唯一方式,就是通过用户界面。
Taking a peek at the code, however, you see a number of important aspects of how the code works.
不过,稍微注意一下此代码,您就会发现此代码的工作方式的许多重要方面。
This code works in PHP V5, but it's better to use the interface system provided, as shown below.
下面的这段代码是在PHPv5中运行的,但最好使用提供的接口系统,如下所示。
The way your custom Ajax code works, all the images in your jCarousel slideshow are loaded by default.
按照定制Ajax代码的工作方式,会默认装载jcarousel幻灯片中的所有图像。
Finally, with the Unit test Environment you were able to test the component to make sure your code works correctly.
最后介绍了如何使用UnitTestEnvironment测试组件,以确保代码正常工作。
Developers often tell me that some piece of code works from their Windows-based application but not from their service.
一些开发人员常常告诉我他们的一些代码在应用程序中可以使用,但是在服务下却不能工作。
The documentation for these Starter Kits describes how the plug-in works, how the code works, and how to install the plug-in.
这些初学者工具包的文档描述插件如何工作,代码如何工作以及如何安装插件。
Developers working on Ruby libraries or applications have a new task on their hands: making sure their code works across Ruby versions.
从事Ruby类库或应用工作的开发者现在有了新的任务:确保不同Ruby版本间代码的兼容性。
Most likely, you'll find yourself in a situation where you have no idea how the Perl code works, exactly, other than observing that it does.
最有可能的情况是,您将发现自己处于这样一种情况:您对Perl代码的确切工作方式知之甚少,只是注意到代码的用途。
In other words (using the specific example of a data binding API), don't assume that you want to use data binding every time your code works with XML.
换句话说(使用数据绑定api这个具体的例子),不要假设您的代码每次处理XML都要使用数据绑定。
It encourages communication by making your programs self-documenting-the set of tests you develop show how the code works in a way that a manual can't.
你开发的一系列测试说明了代码的运行机制,这种程序自我编档的方式促进了交流。
The Myopic environment anti-pattern is reflective of a developer's mentality of falsely assuming that if their code works in one environment, their job is done.
环境近视症反模式反映了开发人员错误地认为自己的代码能在一个环境工作,自己的工作就算完成这种想法。
This code works correctly in Lotus Domino V8, but in Lotus Domino V7.0.2 the response instance is never Nothing because it is instantiated to the default value.
这段代码在LotusDominov8中运行正常,但在Lotus DominoV7.0.2中响应实例决不是Nothing,因为它已被实例化为默认值。
The recompiled code works fine on any Windows 7 SP1 machine, but mysteriously crashes on the Windows XP machines that have been running the program for nearly a decade.
重新编译的代码会在所有安装了Windows7SP1的计算机上正常运行,但是却会在安装有WindowsXP的计算机上神奇地崩溃,而该程序已经在上面运行了快十年。
One of the easiest ways to determine how a piece of code works is to look at an example, so including an example or two of how to invoke a member function is quite helpful.
确定一块代码如何工作的最容易方法之一就是看一下示例,所以包括如何调用成员函数的一个或两个示例是十分有用的。
The goal of developer testing is to ensure that newly written or modified code works as intended and doesn't cause "regression" (ie, the inadvertent breaking of previously working code).
开发人员测试的目标是为了保证新编写或者修改的代码能够如愿工作而不导致“回归”(也就是说,无意中破坏了之前工作的代码)。
When it comes to Zero's RESTful resource scripts, good documentation not only helps you remember how your code works, it can help client-side programmers create and test their client code.
对于Zero的RESTful资源脚本,好的文档不仅能够帮助您记住代码如何工作,还能帮助客户端程序员创建并测试其客户端代码。
As vendors update products or develop new implementations, they can use the endpoints to verify that their new code works and ensure that bugs have not been introduced into existing implementations.
当供应商更新产品或开发新的实现时,他们可以使用端点来验证他们的新代码是否工作,并确保没有将错误引入现有实现中。
The predicate_result object has an implicit constructor that accepts a Boolean value, which explains why the code works fine even though the expected and actual return types of validate_list differ.
predicate_result对象有一个隐式的构造函数,它接受一个boolean值,因此即使validate_list的期望类型和实际返回类型不同,代码仍然会正常运行。
The predicate_result object has an implicit constructor that accepts a Boolean value, which explains why the code works fine even though the expected and actual return types of validate_list differ.
predicate_result对象有一个隐式的构造函数,它接受一个boolean值,因此即使validate_list的期望类型和实际返回类型不同,代码仍然会正常运行。
应用推荐