The benefits to this type of design should be obvious, and follow along the lines of separation of roles, reuse of code, and so on.
这种类型的设计的好处是很明显的。同样,遵循角色分离、代码重用等也是非常有益的。
With that in mind, one big difference between patterns and OO reuse is that patterns are reuse of design in contrast to reuse of code.
了解了这一点之后,我们就会看到,模式和面向对象的重用之间最大的区别就在于,模式是对设计的重用,而不是对代码的重用。
The new IP model based on the Apache license allows maximum reuse of code from OpenNTF for all purposes including usage in commercial applications.
新的基于Apache许可的知识产权模型允许最大限度地以各种方式重用OpenNTF中的代码,包括在商业应用程序中使用。
Reflection mechanism has been successfully applied in the reuse of code component, but scarcely applied in the reuse of architecture and its constituents.
反射机制已成功地应用在代码组件的重用,但几乎没有在重用的架构及其组成部分的。
In traditional ASP development, allows developers the most trouble is the reuse of code is too low, and the event code and code page can not be separated from good.
在传统的ASP开发中,让开发人员最为烦恼的是代码的重用性太低,以及事件代码和页面代码不能很好的分开。
Such functions encourage code reuse and simplify the development and maintenance of queries.
这些函数有助于促进代码重用,简化查询的开发和维护。
As you build up your capture instance example, you will see how you can reuse this snippet of code to retrieve instance attributes with a more complex flow.
在您构建您的捕获实例示例过程中,您将看到如何重用这个代码片段、通过一个更复杂的流检索实例属性。
To verify that the new documents exist in both databases, you can reuse the code from Listing 27 that compares the document lists of two databases.
要验证两个数据库中是否都存在新文档,您可以重用清单27 中的代码,该代码比较两个数据库的文档列表。
The benefits of doing so include flexibility, keeping maintenance of the application easy as it grows, code reuse, and better performance.
这么做的好处包括灵活性、保持应用程序易于维护、代码重用和更好的性能。
Because both of these problems rely on a number's factors, they are good candidates for refactoring (no pun intended) and thus for illustrating styles of code reuse.
由于这两个问题都依赖于数字因子,它们都是重构(不是双关语)和说明代码重用风格的最佳候选者。
The distributed objects approach focuses on code reuse and language independence, while asynchronous messaging addresses the problem of tight coupling between applications.
分布式对象方法侧重于代码重用和语言独立性,而异步消息传递则解决了应用程序之间紧密耦合的问题。
Code reuse also illustrates the difficulties of IT governance.
代码重用也体现了IT治理的难点所在。
Functional programming achieves code reuse by abstracting out generic pieces of machinery, customizable via higher-order functions.
函数式编程通过提取通用的功能部分来实现代码重用,可通过高阶函数进行定制。
Limitations derived from static binding are significant — static binding in the code prevents reuse of services across the enterprise in different applications.
静态绑定的局限性是非常明显的——代码中的静态绑定阻止了不同应用程序中贯穿整个企业的服务的重用。
Most applications do things with lists of elements, so a functional approach is to build reuse mechanisms around the idea of lists plus contextualized, portable code.
大多数的应用程序都是凭元素列表处理事情的,所以函数式方法是在列表和语境化可移植代码的理念基础上构建重用机制。
However, when you end up refactoring a large code base, coupling pops up everywhere because that's one of the reuse mechanisms in object-oriented languages.
然而,当您重构大型的代码库后,到处都会出现耦合的地方,因为那是面向对象语言中的其中一种重用机制。
This is very generic code that you can reuse for other types of mediations, too, given that you change the namespace and root message values, respectively.
这是非常通用的代码,如果分别更改名称空间和根消息值,则还可以在其他类型的中介中重新使用。
Such a powerful user-defined transformation can simplify the process of asset-based development and can assist in code reuse.
这样一个功能强大的用户定义转换可以简化基于资源开发的过程,并帮助实现代码的重用性。
Control flows help promote code reuse, and they enable developers to specify the sequence of various activities.
控制流有助于促进代码重用,还让开发人员能够指定活动的次序。
This is the beauty of object-oriented design; it allows experienced developers to constantly reuse code they have written, and save themselves quite a bit of time.
这是面向对象的设计的美妙之处;它允许有经验的开发人员不断重用已编写的代码,从而节省大量的时间。
The adapter pattern is a nice way to clean this type of code up and reuse all your assignment code in other places.
适配器模式是整理此类代码并在其他位置重用所有赋值代码的优秀方法。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
These are coded as RPG global variables to allow subsequent reuse of the generic template names and minimize code modification.
这些模板被编码为RPG全局变量,以便允许将来重用通用模板名称并最小化代码修改。
In summary, CORBA introduced a number of new features and allowed for the reuse of communication code and the marshaling and unmarshaling of code.
总的说来,CORBA引入了大量的新功能,并允许重用通信代码,对代码进行封送和解封送处理。
Being able to reuse SAX handler is great, but it is a somewhat complicated piece of code.
能够重用SAX处理程序是非常不错的,但其代码稍微有些复杂。
The second most important principle that's been employed in the development of a services-based architecture is the emphasis on maximizing code reuse.
促进开发基于服务的体系结构的第二个重要因素是强调最大化代码的重用。
Make code reuse easier because of a consistent API.
使代码重用更容易,因为有一个统一的API。
This series of articles demonstrates what a powerful code reuse mechanism DI is.
本系列演示了DI是多么强大的代码重用机制。
Unfortunately, because of this, we could not reuse the code we were using from EJB2 CMP ORM, so we needed to manually code the object-relational mapping for the JDBC queries.
不幸的是,我们因此不能重用在 EJB2CMPORM 中使用的代码,所以我们需要手动地编写用于JDBC查询的对象关系映射。
Rather than redefine a specific structure, you simply "include" the header file in your code (a simple form of code reuse) and code to the header file's specifications.
不需要重新定义一个特定的结构,您只需要将头文件“包含”在您的代码(代码重用的一种简单形式)中,并按照头文件中的规范编写代码。
应用推荐