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.
所以,我们判断你的代码是不是正确的唯一方式,就是通过用户界面。
I think you're confusing how executing CIL works with how executing native code works.
我认为你混淆执行CIL的工作方式与执行本机代码是如何工作的。
Believing that code Works on My Machine, only to discover problems later in other environments.
相信代码能够在自己的机器上工作,因此只能在其他环境中发现问题。
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幻灯片中的所有图像。
Before diving into how the calendar's internal code works, I'd first like to discuss how to use the calendar.
潜水到日历的内部代码是如何工作之前,我首先要讨论如何使用日历。
If I copy the image selecting it with the file picker, or getting it from Pictures Library my code works fine.
如果我复制选择与文件选择器图像,或从图片库我的代码工作正常。
To ensure that the code works with the rest of the ecosystem that it will live in (will it go with the other dishes?)
为了保证代码能够在它将赖以生存的生态环境中正常运行(食物可以放在那些碟子里吗?)
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.
一些开发人员常常告诉我他们的一些代码在应用程序中可以使用,但是在服务下却不能工作。
Submitting the form without this code works, though that is only because the search I am running is already definite enough.
提交表单没有这个代码工作,尽管这只是因为我运行的搜索已经足够明确。
The documentation for these Starter Kits describes how the plug-in works, how the code works, and how to install the plug-in.
这些初学者工具包的文档描述插件如何工作,代码如何工作以及如何安装插件。
Unit tests give me the confidence that my code works and that I can change it, at a moment's notice, without the fear of it breaking.
单元测试给我信心,让我相信我的代码能够工作,而且我只要看一下,可以修改它,就不会害怕它会崩溃。
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代码的确切工作方式知之甚少,只是注意到代码的用途。
This means that people can be given sufficient time to analyze, build the applications business logic, rather than complicated code works.
这意味着人们可以将充裕时间用来分析,构建业务逻辑的应用上,而非繁杂的代码工程。
From there, your code works the same. It USES JNDI to access the JMS connection factory and JMS queue, and USES them to send and receive messages.
从这里,您的代码同样使用JNDI访问JMS连接代理和jms队列,并且使用它们来发送和接收消息。
A person assigned to the tester perspective will read through the code thinking about what test cases could prove that the code works properly.
负责测试员透视图的人员需要通读代码,并且要考虑哪些测试例子能够证明代码能正常工作。
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.
确定一块代码如何工作的最容易方法之一就是看一下示例,所以包括如何调用成员函数的一个或两个示例是十分有用的。
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.
确定一块代码如何工作的最容易方法之一就是看一下示例,所以包括如何调用成员函数的一个或两个示例是十分有用的。
应用推荐