- 浏览: 116283 次
- 性别:
- 来自: 大连
文章分类
最新评论
-
ccfangle:
bestchenwu 写道什么时候用“==”还是“equals ...
操作符“==”与对象的equals()方法 -
bestchenwu:
什么时候用“==”还是“equals()”,跟你是把这个对象作 ...
操作符“==”与对象的equals()方法
The Design Patterns book discusses 23 different patterns, classified under three purposes (all of which revolve around the particular aspect that can vary). The three purposes are:
1. Creational : how an object can be created. This often involves isolating the details of object creation so your code isn’t dependent on what types of objects there are and thus doesn’t have to be changed when you add a new type of object. The aforementioned Singleton is classified as a creational pattern, and later in this book you’ll see examples of Factory Method and Prototype .
2. Structural : designing objects to satisfy particular project constraints. These work with the way objects are connected with other objects to ensure that changes in the system don’t require changes to those connections.
3. Behavioral : objects that handle particular types of actions within a program. These encapsulate processes that you want to perform, such as interpreting a language, fulfilling a request, moving through a sequence (as in an iterator), or implementing an algorithm. This book contains examples of the Observer and the Visitor patterns.
.................
However, a later insight made me realize that it’s more useful to organize the patterns in terms of the problems they solve. I believe this is a subtle but important distinction from the way Metsker organizes the patterns by intent in Design Patterns Java Workshop (Addison-Wesley 2002), because I hope that you will then be able to recognize your problem and search for a solution, if the patterns are organized this way.
很好的设计模式学习链接:http://www.jdon.com/designpatterns/index.htm
发表评论
-
25-设计模式学习总结
2012-02-06 15:42 1014在学习Thinking in patterns之前 ... -
24-Prototype
2012-02-06 14:56 893Prototype(原型模式):用原型实例指定创建 ... -
23-Interpreter
2012-02-05 14:51 931If the application user n ... -
22-Visitor
2012-02-05 11:12 873The assumption is that yo ... -
21-Memento
2012-02-03 17:57 947Use serialization to crea ... -
20-Chain of responsibility
2012-02-03 16:25 975Chain of Responsibility ... -
19-Command: choosing the operation at run-time
2012-02-01 17:45 965A Command is a function o ... -
18-Facade
2012-01-15 15:22 926Facade模式 : 为子系统中的一组接口提供一个一致的 ... -
17-Mediator
2012-01-14 19:40 858Mediator模式:用一个中介对象来封装一系列 ... -
16-Observer
2012-01-12 21:35 778好久之前看过Observer,但是,当时不是很清楚 ... -
15-Composite
2012-01-12 10:11 868Composite模式,有时又叫做部分-整体模式(Pa ... -
14-Bridge
2012-01-11 17:06 844思考了好一阵,总 ... -
13-Adapter
2012-01-10 21:38 797接下来的两个模式目的就是:Connecting differe ... -
12-Decorator:too many classes
2012-01-06 20:17 978呵,从翻译这 ... -
11-Flyweight: too many objects
2012-01-06 16:10 948The odd thing about flyweight, ... -
10-Builder
2012-01-06 09:14 831The goal of builder is to separ ... -
9-Factory method(Simple Factory method&Abstract factories)
2012-01-03 19:16 868//工厂方法的理解比较容易,重要还是如何在实践中应用。以下范例 ... -
8-Template method
2012-01-01 20:50 739An application framework allow ... -
7-Policy: generalized strategy
2012-01-01 15:58 1142Although GoF says that Policy i ... -
6-Strategy: choosing the algorithm at run-time
2011-12-29 10:40 1033Strategy : choosing the alg ...
相关推荐
- **模式分类 (Classifying Patterns)** - 对模式进行更细致的分类有助于开发者更好地理解和应用它们。 - **开发挑战 (The Development Challenge)** - 讨论了在实际开发中遇到的挑战以及如何利用模式来应对这些...
4.3 Classifying Evoked and Event-Related Potentials by Waveform 5. Concluding Remarks and Future Applications 5.1 Dynamic Version of State Identification by UOFC 5.2 Data Fusion Appendiex 1...
this paper, the problem of classifying an unseen pattern on the basis of its nearest neighbors in a recorded data set is addressed from the point of view of Dempster-Shafer theory. Each neighbor of a ...
Table of ContentsPART 1 CLASSIFICATION Machine learning basics Classifying with k-Nearest Neighbors Splitting datasets one feature at a time: decision trees Classifying with probability theory: naïve...
This book shows you exactly how to find patterns in your raw data. You will start by brushing up on your Python machine learning knowledge and introducing libraries. You’ll quickly get to grips with ...
- **3.4.5 Classifying Functions** (函数分类):根据函数的增长速度对函数进行分类。 - **3.5 Calculating the Running Time for a Program** (计算程序运行时间):教授如何通过代码分析来估算程序的运行时间。 - ...
we propose an intelligent cognitive radar system for detecting and classifying the micro unmanned aerial systems (micro UASs). In this system, we design a low- complexity binarized deep belief network...