捕捉惯用模式最简单的方式就是将它们作为自身的API或框架予以提取。
The easiest way to capture idiomatic patterns is to extract them as their own API or framework.
我们将要建立的是一个简单的3-tier框架,它使用了三种模式处理业务逻辑:3-layer体系结构模式、Singleton模式和Command模式。
The framework we'll create is a simple 3-tier framework that processes business logic using three patterns: the 3-layer architecture pattern, the Singleton pattern, and the Command pattern.
新框架的创建可能会非常简单,只需要复制现有框架然后添加新模式和示例即可。
The creation of a new framework may be as simple as cloning an existing framework and adding new patterns and examples.
创建聚合框架解决简单问题,否则将需要使用映射-规约模式。
The aggregation framework was created to solve easy problems that otherwise would require map-reduce.
创建聚合框架解决简单问题,否则将需要使用映射-规约模式。
The aggregation framework was created to solve easy problems that otherwise would require map-reduce.
应用推荐