将问题拆解成更小的模块并使用代码来解决,这变得很普遍。
Breaking down problems into bite-sized chunks and using code to solve them becomes normal.
这样做,您就会用到自定义代码模块。
对于每个代码模块,你应当有测试其所有方法的一组单位测试。
For every code module, you should have a set of unit tests that exercises each of its methods.
如果需要的话,可以卸载模块来除去内存中所有的代码和变量。
Modules can be unloaded if needed which removes all the code and variables from memory.
代码本身没有改变,但是需要修改模块的元数据。
The code itself does not change, but the module metadata needs to.
在单个代码模块中捕捉这样需求的能力,提升可追踪能力。
The ability to capture such requirements in a single code module, improving traceability.
它将允许您查看程序和装入模块中的数据和代码。
It will let you view data and code in your programs and in the loaded modules.
编写能够被特定的元素和属性调用的可重用代码模块。
Write reusable code modules that can be invoked for specific elements and attributes.
创建一个单独的目录存储模块代码和相关资源。
Create a separate directory for the module's code and associated resources.
根据部署的代码模块的类型,部署程序调用不同的专用构造器。
Depending on the type of code modules being deployed, the deployer calls on different specialized builders.
渐进地在目标平台上编写代码以取代对遗留模块的依赖。
Gradually write code on the target platform to replace dependence on legacy modules.
上面的代码包含了必要的模块并定义了变量。
The code above includes necessary modules and defines variables.
图1描绘了单一执行代码模块。
列表2显示了此搜索模块的代码。
您可以从下载小节下载示例模块的完整代码。
You can download the full code for this example module in the download section below.
SQL模块也必须包含格式模板代码,如 清单2 所示。
The SQL module must also contain the format template code as shown in Listing 2.
一个完全的自定义代码代码模块,您可以从中进行拷贝和粘帖。
GetTestData.java: a completed custom code module from which you can copy and paste.
一个完全的自定义代码代码模块,您可以从中进行拷贝和粘帖。
SetupTestDataArea.java: a completed custom code module from which you can copy and paste.
下载ZIP文件包含完整的EAR模块和本文所用的代码清单。
The included download ZIP file contains completed EAR modules and the code listings used in this tutorial.
您将详细地了解我们的模块,包括代码示例。
You'll get more details about our module, including specific examples of code.
该模块的代码必须通过JNDI查找连接池。
The module's code must look up the connection pool through JNDI.
GWT代码的基本单元是模块。
有些问题需要重新编程并改变模块的全部代码逻辑。
Some issues require re-programming and changing entire sections of code logic.
如果使用sdo代码,模块可以在V7模式中运行,不需要修改代码。
If you did use SDO code, your modules can run in V7 mode without any coding changes.
我们将代码分解到不同的类或模块中。
然后您从源代码控制中导入您期望变更的项目或模块。
You then import from source control the projects or modules that you expect to change.
由于一个自定义代码模块只能在一个测试环境中运行,因此您需要创建一个除了代码模块不包含任何其它东西的简单测试。
Since a custom code module can only run in the context of a test, you will create a simple test that contains nothing except the code module.
包结构对代码加以组织并推动模块化和维护。
The package structure organizes the code and facilitates modularity and maintenance.
由于代码是模块化的,因此更容易编写和维护。
Because the code is modular, it is easier to write and maintain.
这个自定义登录模块的代码与场景5中使用的应用程序中的代码几乎完全相同。
The code in the custom login module is almost the same as the code from Scenario 5 used in the application.
应用推荐