通用代码模板允许对代码进行重用。
您可以轻松地将清单3和清单5组合起来,获得一个通用代码模板处理器。
You can easily combine Listings 3 and 5 to make a generic code template handler.
单击Enter,CDT会生成代表for循环的已选定类型的通用代码。
When you click Enter, the CDT produces generic code representing the chosen type of for loop.
使用新的编译器,尽可能为多种体系结构维持一个详尽的通用代码基(codebase)。
Maintaining as thorough a common code base for various architectures as possible, using a new compiler
您会发现自定义模型带来的问题是需要自己编写通用代码来支持模型,如序列化及侦听模型更改的功能。
The problem with custom models is that you find yourself writing common code to support your model, like serialization and the ability to listen to model changes.
不同的数据库结构、技术和业务需求具有不同的通用功能,可以把这些功能转移到泛型DAO的通用代码中。
Different database structures, technologies, and business requirements have different common functionality that can be moved into the common code of a generic DAO.
客户端处理程序和服务处理程序都必须签署传出消息并验证传入消息,这样,抽象类SignHandler就将提供通用代码。
Both the client and service handlers must sign outgoing and verify incoming messages, so an abstract class, SignHandler, will provide the common code.
Kid还可以支持模板继承(template inheritance),这样所生成的新模板就可以对基本模板进行扩充,从而可以在一个地方创建并维护通用代码。
Kid also supports template inheritance, in which derived templates can extend from base templates so that common code can be created and maintained in one location.
本文探索了几个API,展示了在必要时隔离功能的能力(计时器 API和高精确度 hrtimer API)以及编写通用代码以实现代码重用的能力(列表API)。
This article explored a few APIs that demonstrate the ability to segregate functionality where necessary (timer and high-precision hrtimer APIs) as well as commonize code for code reuse (list API).
UPC - A通用产品代码,广泛用于加拿大和美国,用于跟踪商店中的交易物品。
UPC-A the Universal Product Code that is widely used in Canada and the United States for tracking trade items in stores.
除非您需要一种新协议,否则网络栈中的其余代码都是通用的,都会非常有用。
The remaining code in the network stack is common and usable unless you require a new protocol.
JDBC通用驱动程序错误代码。
一般情况下,我给出的代码对于类似任务是通用的。
In general form, code very much like what I present will be common for similar tasks.
清单2中的代码旨在演示输出类的通用逻辑。
The code in Listing 2 is meant to demonstrate the general logic of the output class.
JCC驱动程序只能发出少数几种DB 2通用驱动程序错误代码。
There is only a handful of DB2 Universal driver error codes issued by the JCC driver.
此代码将全局变量设置为文档通用ID的值加上两项的值。
This code sets global variables to the value of the universal ID of the document plus the values of the two items.
这是一项通用的良好实践,可以以这种方式将常见的复杂代码封装起来,从而供实现者更容易地遵循您的开发标准。
It is a general good practice to wrap common complex code in this way to make it easier for implementers to follow your development standards.
这些代码是Linux 所支持的所有处理器体系结构所通用的。
This code is common to all of the processor architectures supported by Linux.
提取通用行为并把它们包含在泛型DAO 中,让类的所有用户通过泛型 DAO访问这些功能,这样就可以减少代码重复。
You can reduce code duplication by abstracting the common behavior and including it in the generic DAO, where all users of the class will have access to the functionality.
默认的已标记XML输入文档被转换为通用IBMDataStudio代码(实际的数据库操作在这里准备和执行)。
The default tagged XML input document gets forwarded to the common IBM Data Studio code where the actual database operation gets prepared and executed.
尽管如此,仍然需要存在编写面向商业的通用语言(Common Business Oriented Language,COBOL)代码来将理想的XML消息转换为事务调用的工作。
Nevertheless, there is still the task of writing the Common Business Oriented Language (COBOL) code to translate from an ideal XML message into transaction invocations.
GNU通用公共许可协议基本的思想就是要保证所有使用代码的用户都享有那四项自由.
RMS: The basic idea of the GNU General Public License is to assure that all users of the code have the four freedoms.
由于出现上述内容的可能性很小,我就将代码保持得尽量简单,但如果想要编程实现一个真正通用的Atom阅读器,请务必小心!
Because this isn't likely, I opted to keep the code simple, but be warned if you want to program a truly general Atom reader!
该需求对程序员和代码来说都是合理的,但用户期待以符合其当地文化的通用格式来输入及查看数字。
That requirement is reasonable for programmers and code, but users expect to enter and view Numbers in the common format for their local culture.
与其重复定义和管理这些属性的代码,不如创建一个通用的帐户(account)类,该类具有现金收支平衡并且可以处理借贷事务。
Rather than duplicate the code that defines and manages these properties, you can create a common Account parent class that has a cash balance, and can handle credit and debit transactions.
通常,应用程序的大部分代码通用于所有种类的Unix,也可用于Linux。
Normally, much of the application code is common across all Unix flavors and will work on Linux, too.
使用默认行为的描述性html元素可以避免用大量代码模拟通用DIV的行为。
Using descriptive HTML elements with default behavior saves a lot of time writing JavaScript code to simulate the behavior with general-purpose DIVs.
其中的大部分代码都是通用php脚本,枚举了目录中的所有文件,并按顺序逐一处理。
Most of this code is general purpose PHP script that enumerates all the files in a directory and processes each in turn.
只有当调用可中断方法的类是Thread的一部分,而不是Runnable或通用库代码的情况下,才会发生这样的场景,清单5演示了这种情况。
This scenario only occurs when the class calling the interruptible method is part of a Thread, not a Runnable or general-purpose library code, as illustrated in Listing 5.
这大大简化了代码,但并不适合用于通用的SimpleDB。
The code is significantly simpler because of this, but it's also not suitable for general-purpose SimpleDB usage.
应用推荐