That original Kindle, code-named "Fiona" after a character in Neal Stephenson's futuristic novel The Diamond Age, was finally ready to go in the fall of 2007.
最初的Kindle以尼尔·斯蒂芬森的科幻小说《钻石时代》中的一个人物命名,代号为“菲奥娜”,终于准备在2007年秋季上市。
So, you can see why it is important to understand the inconsistencies between your original code and what the generated artifacts assume your code looks like.
所以,从中您可以看出,为什么理解您最初的代码与生成的构件对您的代码的假定之间不一致是很重要的。
Once the bound component marshalling method has been found or generated, the object binding component just adds the code to call that bound component method to the original method it was passed.
如果发现或生成了绑定组件的编排方法,对象绑定组件添加的代码只是让绑定组件的方法去调用传递给它的原始方法。
So that you have to store the inputted code in a variable, replacing certain HTTP characters with their original values (in this case, quotation marks).
为此,必须将所输入的代码存储在一个变量内,用其原始值替代特定的HTTP字符(在本例中,是引号)。
For instance, one of the problems with the original code is that it is limited to the size of a DMA transfer.
举例来说,原来代码的一个问题是一次dma传输的大小有限制。
This process is of Paramount importance, because future maintainers of your code are bound to tamper with the original logic at some point, and the unit tests will fail the moment something breaks.
这个过程极其重要,因为代码以后的维护者可能会破坏原来的逻辑,这时单元测试就会失败。
Then, calls to the appropriate methods in these class files are woven into the original application code.
然后,在这些类文件中对适当方法的调用被编织入原始应用程序代码。
It then replaces the body of the copied method with timing code wrapping a call to the renamed original method.
然后它用含有对经过重命名的原方法的调用的计时代码替换拷贝方法的正文。
If you cannot change the original API, you can write wrapper code to convert the collection type into an array.
如果您不能改变原始的API,那么您可以书写封装器代码,将聚集类型转化为数组。
In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.
这种情况下返回的函数对象就是一个闭包,其中封装了一些日志代码和最初的函数调用所需要的数据。
This code will perform the run-time mapping and write the corresponding formatted template to the original file, as shown in Listing 17.
这段代码将执行运行时映射,并将对应的格式化后的模板写入原始的文件中,如清单17所示。
The use of all three methods leads to better code quality than the original two methods alone.
使用所有的三种方法比最初只使用两种方法会带来更高的代码质量。
Because we overrode the factory method to write this test, it turns out that we no longer have any test coverage of the original creation code (which is now inside the base class's factory method).
因为我们覆盖了工厂方法来编写这个测试,所以其结果是:我们的测试不再包括任何原始创建代码(现在它在基类的工厂方法内部)。
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
The developer can open the test script, review the code and comments, and run the test script to see what the original developer thought she was developing.
开发人员可以打开测试脚本,检查代码和注释,并运行测试脚本以查看原有开发人员所认为自己开发的内容是什么。
The complete code for this application can be obtained from the source download, so I'm just going to highlight changes from the original version of the form.
这个应用程序的完整代码可以从源代码下载部分获取,因此我只强调相对表单的最初版本的一些变化。
Willingness for anyone on the project to jump in and fix broken windows regardless of the original author(s) of the code.
项目中的每个人都要自愿参与修复 “破损窗户”,不管代码的原作者是谁。
The developer might have to waste time removing all the original code changes, before it's possible to starting work on the new functionality.
在可以开始操作新功能之前,开发员可能必须浪费时间以删除所有原始的代码更改。
This requires you to change only one line of code from the original code in Listing 2.
在清单2中的原始代码基础上只更改一行代码即可。
It also has the virtue of not requiring any modification to the original source code, and potentially minimal configuration change to the environment.
它的另一个优点是无需修改初始源代码,并且其对环境的配置更改也可能最少。
The result of code generation is a DAO implementation class which is compiled and used to execute the SQL statements declared in the original interface.
代码生成的结果就是第二个实现类,该实现类被编译并用于执行初始接口中声明的sql语句。
Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.
类一旦被解析,就会以一种线程安全的方式修改原始代码位置以便直接访问静态字段的地址,因为此时已获知该地址。
This iterative process enables the original application source code to be run and rerun to ensure a high-quality transformation.
该迭代过程运行并重新运行原始的应用程序源代码,以确保高质量的转换。
AOP allows you to modify existing applications without affecting the original application's source code.
AOP允许您在不影响原始的应用程序源代码的前提下,对现已存在的应用程序进行修改。
While the resulting code isn't identical to the original source code, it is functionally the same.
虽然它生成的结果与源码并不完全一致,但在功能上是相同的。
A refactoring is a code change that leaves the original functionality intact, but changes the design of the code so that it's cleaner, more efficient, and easier to test.
重构是一种代码更改,它使原始功能保持不变,但更改代码设计,使它变得更清晰、更有效且更易于测试。
The interpreter code for these elements calls the outputter to switch to a new destination and subsequently to revert to the original destination.
这些元素的解释器代码调用输出器切换到新目的地,然后还原到原始目的地。
If you view the actual HTML source code sent to the browser, you find that it is quite different from the original code.
如果查看发送到浏览器中的实际HTML源码,您将发现它与原始代码非常不同。
An application that has not been touched for a while needs to be upgraded, but the original requirements, design, tests, and sometimes even code can no longer be found.
暂时尚未涉及到的程序需要得到升级,但是有时不能找到原始的需求、设计、测试,甚至代码。
Note that the first two code blocks within the new function are almost identical to those in the original.
注意,新函数中的前两个代码块与原来函数几乎相同。
应用推荐