Listing 6 shows the same code after I used the Inline refactoring.
清单6显示执行了Inline重构的代码。
Running the same code using the JSON format yields a much more compact statement
使用JSON格式运行相同的代码将得到精简得多的语句
Even though it is the same variable name in the same code, num is different this time.
尽管这是相同代码中的相同变量名,不过num这次不同了。
Listing 3 shows the same code with logic added that tests for word string length and frequency.
清单3展示了相同的代码,但是添加了测试单词字符串长度和频率的逻辑。
Running the same code on a 2-ghz (or faster) Pentium 4 produces full-motion video at 800x600.
如果在2ghz(或更快的)Pentium4上运行同样的代码,那么可以产生800x600的运动视频。
Ideally, you should be able to use the same code with some additional markup, as in this example.
理想情况下,您应该可以使用同样的代码外加一些附加标记进行创建,如下所示。
Now, try to run the same code under JBoss 5. It's easy enough to move between the two environments.
现在,尝试在JBoss5下运行同样的代码。在这两个环境之间移动很简单。
For most developers, writing almost the same code for every DAO in a system has by now become a habit.
对于大多数开发人员,为系统中的每个DAO编写几乎相同的代码到目前为止已经成为一种习惯。
If you run the same code through json_encode , you get a portable json object (as shown in Listing 5).
如果您通过json_encode运行相同的代码,您将得到一个可移植的json对象(如清单5所示)。
However, you could also execute the same code in the context of a calculator class to receive a result.
然而,你还可以在一个calculator类的上下文中执行同样的代码来获得结果。
This code reuse results in more reliable and efficient code, because the same code is tested again and again.
代码重用可以得到更可靠和更有效的代码,这是因为对相同的代码进行了反复测试。
That means the same code written by one developer will often be used and modified by many other engineers.
那意味着由一名开发人员编写的同一段代码通常是由许多其他工程师来使用和修改的。
Is a prototype still a prototype if the same code used to build it is also used to create the final product?
如果用来构建原型的代码也用来创建最终产品,那么它还是原型吗?
And we can use this command line to invoke the same code (Listing 4) that we used in our CosNaming example.
我们可以用这个命令行调用在CosNaming例子中使用的同一段代码(清单4)。
But the same code died horribly when someone introduced a 68030 machine with main memory starting at 0x8000000.
但是当将相同的代码移植到一台主存地址从0x8000000开始的68030机器上时,这些代码就会死掉。
If possible, have the client running in the same code page as the database, to avoid conversion costs on the server.
如果可能的话,让客户机与要存取的数据库使用相同的代码页,以避免在服务器上的转换代价。
By using a generic Session object, you can use the same code even if that code is not running inside a web application.
通过使用一个通用的Session对象,即便该代码没有在一个Web应用程序中运行,仍可以使用相同的代码。
Most of the code within a JAX-RPC call is bidirectional, so the same code used on the server is also used on the client.
JAX - RPC调用中的大多数代码是双向的,因此,在服务器上使用的相同代码也可在客户机上使用。
This method takes a new client object and an anonymous method that holds the same code a normal using block would contain.
方法接收一个新的客户端对象,以及一个匿名方法,该方法持有的代码与正常使用using语句块包含的代码完全相同。
If you must rebuild the same code or build a newer version of the code, you can refer to your journal to refresh your memory.
如果您必须重新编译相同的代码,或者编译该代码更新的版本,那么就可以借助您的记录,回忆起所需采取的步骤。
Start with the same code from Listing 10, but without any initial static pages in the StackContainer, as shown in Listing 11.
以清单10相同的代码开始,但没有StackContainer内的任何初始静态页面,如清单11所示。
That way, the actions in your detailed information component and all your summary information components can use the same code.
那样,详细信息组件和所有摘要信息组件中的操作可以使用相同的代码。
Those who use it will find that they often have to write the same code each time they want to create a different Singleton class.
他们会发现每次他们要创建一个不同的单例类的时候,都不得不写同样得代码。
Not only does this save you from repeating the same code over and over, but it also makes your application much easier to maintain.
这不仅使您避免了一遍又一遍的重复编写相同的代码,也使您的应用程序更易于维护。
In the example shown in Table 4, the same code is used to identify elements in the analysis model that should have been transformed.
在表4中所示的实例中,相同的代码用于识别分析模型中要进行转换的单元。
The versioning of bundles so that different versions of the same code can co-exist and be made available to different applications.
捆绑包版本控制,同一代码的不同版本可以共存,并可用于不同应用程序。
Obtaining the Domino session cookie is an important part of the process, and you can use the same code in other Domino-related applications.
获得Domino会话cookie是此流程的重要部分,您可将相同的代码用于其他与Domino相关的应用程序中。
If you do not need to worry about the chance of the same code being assigned to more than one project, this macro is sufficient for your needs.
如果不需要考虑将相同代码分配到多个项目的情况,这个宏就足以满足您的需求。
For example, if in your app, you had both a web based interface, and a WPF interface, you could still use the same code for your Model for both.
例如,在你的应用程序中,有两个界面,基于Web的和WPF的,那么你可以在两者中都使用同样的模型定义代码。
Thanks to a new compiler, various benchmarks show that apps on Android 2.2 are up to five times faster than the same code running on Android 2.1.
由于采用了新的编译器,各种测试指标显示,当同样一个应用运行在Android 2.2上时,要比运行在Android 2.1上快得多,最高快5倍。
应用推荐