我惊喜地发现,我可以用很少的代码实现这种类型的动态映射。
I was pleasantly surprised how I could achieve this type of dynamic mapping with so little code.
请参阅下载小节,以查看代码实现。
结果是凭借无代码实现减少了总体拥有成本。
This results in reducing the total cost of ownership through codeless implementation.
从清单2中可以看到所有这些只由一行代码实现。
From Listing 2, you can see that all of this was accomplished with just one line of code.
传统上,支持JMX包括用样本代码实现模式。
Traditionally, supporting JMX involves implementing patterns with boilerplate code.
清单15中的代码实现XML文档和类变量之间的映射。
The code in Listing 15 implements the mapping between the XML document and the class variables.
代码实现通过共享内存段通信的父进程和子进程。
The code implements a parent and child process that communicates via a shared memory segment.
为了阐释通过上述代码实现的行为,将在下面提供一些示例。
To illustrate the behavior with the above code implemented, a few examples are provided below.
清单2 使用 70行代码实现了一个计算器。
The code in Listing 2 realizes a calculator in 70 lines of code.
代码实现了Eucalyptus中的文件锁定机制。
The code implements the file locking mechanism in Eucalyptus.
static关键字会在可能的最近时刻强迫PHP绑定到代码实现。
The static keyword forces PHP to bind to the code implementation at the latest possible moment.
而同样的任务,带有改进的健壮性和出错处理,可以使用3行代码实现。
The same task, with improved robustness and error handling, can be accomplished in three lines of code.
待办事项:代码实现是一组要在固定时间范围内完成的优先任务。
Backlog: a backlog is a set of prioritized tasks to be completed in a fixed timeframe.
用setInterval代码实现基于步骤的动画看起来有些抖动。
The steps-based animation that people try to use with setInterval code just ends up looking jerky.
本文还介绍业务组件和样例代码实现的一些建议,进一步说明了一个实现的样子。
Also included were recommendations for the implementation of a business component and sample code to further illustrate how an implementation might look.
您可以在1个GSP文件和3个控制器中,用大约150行代码实现所有这些功能。
You can achieve all of this functionality in about 150 lines of code spread across a single GSP file and three controllers.
清单8中的代码实现了一个处理传入的SIGCHLD信号的信号处理程序。
The code in Listing 8 implements a signal handler to deal with the incoming SIGCHLD signal.
服务代码实现WSDL接口并将业务与映射逻辑应用于调用和映射来自后端系统的结果。
The service code implements the WSDL interface and applies business and mapping logic to call into and map results from backend systems.
在这个情况下,您应该尽力的识别已经被代码实现的特定特性,然后将这些特性映射到用例图。
In this case, you try to identify the specific features implemented in the code and then map them to the use cases.
使元数据与它引用的实际代码实现内联,从而提供引用的本地性,使所有事物都汇集在一个地方。
Having the metadata inlined with the actual code it references provides locality of reference, so that everything is in one place.
为了理解这些好处,让我们考虑一些我们可以在需求中表达但无法直接用纯oo代码实现的情况。
To understand the benefits, let's consider some things that we can express in requirements but not implement directly in pure OO code.
清单4 所示代码实现不是将现有对象以中心为原点进行旋转,而是以其左上角为原点进行旋转。
The code in Listing 4 didn't actually rotate the object in place around its center, but around its upper-left corner.
这些开发人员由于不熟悉Web服务技术与开发的复杂性,在大部分服务代码实现上都要依赖于工具。
These developers, unfamiliar with the intricacies of Web services technology and development, rely on tools for most of the service code implementation.
清单2中的代码实现了简单的互斥,acquire()方法也是原子的读-修改-写操作。
The code in Listing 2 implements a simple mutex, and the acquire() method is also an atomic read-modify-write operation.
您可以更改上面的代码样例来显示type属性,可以使用清单7中所示代码实现上述操作。
You can change that last code sample to show the type attribute by using the code in Listing 7.
测试驱动开发能克服开发团队遇到的许多问题:开发团队经常在代码实现之后才创建单元测试。
Test Driven development overcomes many of the issues faced by development teams that often leave the creation of Unit Tests until after the implementation.
首先,您将一些数据验证的责任从自己编写代码实现转为用模式验证器实现,这样能够节约您的时间和金钱。
First, you will shift responsibility for some data validation from your code to the schema validator — this will save you time and money.
如果可以用一行代码实现一个点击-拖动功能,那么在为一个GUI制作原型时,您很可能更愿意尝试一下。
If you can set up a click-and-drag feature with a single line of code, you're much more likely to try it when prototyping a GUI.
动态代理,正如它的名字暗示的,能在运行时动态的支持一个SEI而不需要产生任何代码实现一个特定的SEI。
Dynamic proxy, as its name suggests, supports an SEI dynamically at run time without requiring any code generation of a stub class that implements a specific SEI.
动态代理,正如它的名字暗示的,能在运行时动态的支持一个SEI而不需要产生任何代码实现一个特定的SEI。
Dynamic proxy, as its name suggests, supports an SEI dynamically at run time without requiring any code generation of a stub class that implements a specific SEI.
应用推荐