This article introduces how to depart data compression from business by Spring AOP technology. And it is strong code reusable, readable, maintainable and can improve program quality.
通过AOP技术将数据压缩功能从相关业务过程中分离,实现基本横切关注点,与程序的业务过程相分离。可提高代码的重用性、可读性、维护性,并有效改善代码质量。
Almost all the code in this article is reusable.
几乎本文的所有代码都是可重用的。
Due to its higher level of abstraction, patterns are often more reusable than code.
由于它抽象的层次更高,所以通常模式比代码更易于重用。
The goal of this article, as with its predecessor, is to show legible and reusable code, not necessarily the shortest or most efficient version of a program.
本文的目的与上一篇相同,即要演示清晰且可重用的代码,而这些代码未必是某个程序的最简短或最有效的版本。
This model requires both parties to stick to a programming convention that may not be relevant to the software's basic functionality and, in general, can make the code less reusable.
这种模型需要双方都坚持一个可能与软件基本功能无关的编程约定,而且在一般情况下,这个编程约定可能使代码更加不可重用。
More than just a component of reusable code, a service is part of a running program that can be invoked by a client without having to incorporate the code itself.
服务不仅是可复用代码的组件,更是运行程序的一部分,客户端可以不必合并它自己的代码直接调用该程序。
Its declarative processing model allows for very maintainable and reusable code.
它的声明性处理模型使代码很容易维护和重用。
Write reusable code modules that can be invoked for specific elements and attributes.
编写能够被特定的元素和属性调用的可重用代码模块。
You still need to design a sound application and develop it with solid and reusable code and thorough testing.
您仍需要设计一个完善的应用程序,用可重复使用的可靠代码开发它,并对其进行彻底测试。
A task is the place where you will write the most reusable complex code.
任务是你可以编写最大限度重用和最复杂代码的位置。
The really important benefit of this exercise is the ability to harvest reusable code.
这些重构工作真正重要的益处是得到了可重用的代码。
This is the code I ultimately refactor into its own idiomatic pattern in "Leveraging reusable code, Part 1."
这就是在“利用可重用代码,第1部分”中我最终重构到它的惯用模式中的代码。
The use of generics makes your code base much more maintainable, especially as it grows and you turn code elements into reusable libraries.
泛型的使用使您的代码库更容易维护,尤其当代码库不断增长,以及将代码元素转换为可重复使用的库时。
Unlike a tightly coupled approach, using dynamic proxies leaves you with validation code that is reusable and configurable.
与紧密耦合方法不同,使用动态代理给您带来了可以重用、可以配置的验证代码。
Performance implications are particularly important to evaluate when you are writing code for a reusable library.
在您编写可重用库的代码时,评估性能牵连就显得尤其重要。
Here I'll talk about what to do once you've unearthed reusable design in code, covering techniques for harvesting those patterns.
在这里我要讲一下在发掘出代码中的可重用设计之后应该做些什么,介绍获取这些模式所用的方法。
While this approach works to decouple the interface's validation logic from its core business code, it isn't very reusable or configurable.
虽然这种方法可以把接口的验证逻辑从它的核心业务代码去耦,但是它的可重用性和可配置性不是很强。
This code fragment can be reduced back to a single line by moving the JSTL code into a reusable tag file that outputs the element.
通过将JSTL代码移动到输出元素的可重用标记文件中,就可以将此代码片段缩减为一行。
Listing 9 shows a pattern that I introduced in "Leveraging reusable code, Part 2" under the guise of removing structural duplication.
清单9显示了我在“利用可重用代码,第2部分”中引入的一个模式,它以删除结构性重复为名义。
Nor does it obviously contain reusable code.
但是,它也不包含明显的可重用代码。
After placing generic code into reusable components or frameworks, consider using code generators to produce specialized code more efficiently.
在将泛型代码放入可重用组件或框架时,可以考虑使用代码生成器来更有效地生成特定的代码。
Also the object-oriented architecture makes the code structured, reusable, and fast.
而且,面向对象的体系结构使代码结构化、可重用并且运行快速。
It has a well-designed extensibility mechanism, and its declarative processing model allows for maintainable and reusable code.
这种语言具有一种经过良好设计的可扩展机制,并且其声明式处理模型支持可维护和可重用代码。
Functional programmers also want reusable code, but they use different building blocks.
函数式程序员也需要可重用的代码,但是他们会使用不同的构建块。
It might even yield some reusable code.
这个原型甚至能够产生一些可重用的代码。
When you look at the code in Listing 1, you don't see reusable assets; you just see a pile of code.
在清单1中,看不到可重用的资产;只看到一大堆代码。
Reusable services and libraries code.
可重用的服务和程序库代码。
In the article "Leveraging reusable code, Part 2," I showed an API definition for a train car, as shown in Listing 3.
在“利用可重用代码,第2部分”一文中,我展示了火车车厢的一个api定义,如清单3所示。
This article explained how to write reusable code in Python.
本文介绍了如何在Python中编写可重用代码。
These are governance issues, and they're much more complex than in the days of monolithic applications or even in the days of reusable code and components.
这些都是治理的问题,而比起整体(monolithic)式的应用时期要复杂多了,甚至超过了代码和重组重用的时期。
应用推荐