![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
文章平均质量分 78
刘祖义
专注于自媒体平台运营和网站优化的汉子,和别人合作的android应用程序曾获得第八届信息技术水平大赛二等奖!
展开
-
Design Patterns Elements of Reusable Object-Oriented Software(一)Introduction(介绍)
1.Introduction(介绍)Designing object-oriented software is hard,and designing reusable object-oriented software is even harder.You must find pertinent objects, factor them into classes at the rightgran翻译 2013-07-17 10:29:45 · 4443 阅读 · 2 评论 -
设计模式之Frameworks 框架
Frameworks 框架 设计模式翻译 2013-11-25 07:58:59 · 1291 阅读 · 0 评论 -
设计模式之Application Programs and Toolkits
Application Programs 应用程序If you're building an application programsuch as a document editor or spreadsheet, then internal reuse, maintainability, andextension are high priorities. Internal reuse e翻译 2013-09-05 09:18:43 · 1266 阅读 · 0 评论 -
设计模式之 Designing for Change 变更设计
The key to maximizing reuse lies in anticipating new requirements and changes to existing requirements, and in designing your systems so that they can evolve accordingly.变更设计的关键是在预测新的要求和变更已存在的要求时最大限翻译 2013-08-31 11:08:38 · 1191 阅读 · 0 评论 -
设计模式之Inheritance versus Parameterized Types 继承和参数化类型
Another (not strictly object-oriented)technique for reusing functionality is through parameterized types, also known asgenerics (Ada, Eiffel) and templates (C++). This technique lets you define atyp翻译 2013-08-17 17:34:47 · 1213 阅读 · 0 评论 -
设计模式之 Delegation 授权
Delegation is a way of making composition as powerful for reuse as inheritance[Lie86, JZ91]. In delegation, two objects are involved in handling a request: a receiving object delegates operations to翻译 2013-08-16 18:00:42 · 1683 阅读 · 0 评论 -
设计模式之Relating Run-Time and Compile-TimeStructures
Relating Run-Time and Compile-TimeStructures 有关运行时和编译时的结构An object-oriented program's run-time structure often bears little resemblance to its code structure. The code structure is frozen at compile翻译 2013-08-27 10:25:14 · 1568 阅读 · 0 评论 -
设计模式之 Putting Reuse Mechanisms to Work and Inheritance versus Composition
Most people can understand concepts like objects, interfaces, classes, and inheritance. The challenge lies in applyingthem to build flexible, reusable software, and design patterns can show you how.翻译 2013-08-15 20:14:47 · 1253 阅读 · 0 评论 -
设计模式之Programming to an Interface, not anImplementation 程序指向接口,而不是实现
Class inheritance is basically just a mechanism for extending an application's functionality by reusing functionality in parent classes. It lets you define a new kind of object rapidly in terms of a翻译 2013-08-15 16:08:57 · 1688 阅读 · 0 评论 -
Class versus Interface Inheritance 类接口继承
Class versus Interface Inheritance 类接口继承It's important to understand the difference between an object's class and its type.理解对象类和它的类型的不同这是非常重要的An object's class defines how the object is impleme翻译 2013-08-10 15:03:00 · 1233 阅读 · 0 评论 -
Specifying Object Implementations 指定对象的实现
So far we've said little about how we actually define an object. An object's implementation is defined by its class. The class specifies the object's internal data and representation and defines the翻译 2013-08-08 21:31:17 · 1035 阅读 · 0 评论 -
Determining Object Granularity 决定对象的粒度
Objects can vary tremendously in size and number. They canrepresent everything down to the hardware or all the way up toentire applications. How do we decide what should be an object?就尺寸和数字而言,对象是极其翻译 2013-08-07 19:56:46 · 1262 阅读 · 0 评论 -
How Design Patterns Solve Design Problems 设计模式如何解决设计问题
HowDesign Patterns Solve Design Problems设计模式如何解决设计问题Design patterns solve many of theday-to-day problems object-oriented designers face, and in many different ways. Here areseveral of these proble翻译 2013-08-05 12:10:09 · 1140 阅读 · 0 评论 -
设计模式 之 Organizing the Catalog 组织目录
Design patterns vary in their granularity and level of abstraction. Because thereare many design patterns, weneed a way to organize them. This section classifies design patterns so that we can refer翻译 2013-07-29 20:38:06 · 1080 阅读 · 0 评论 -
The Catalog of Design Patterns 设计模式目录
The Catalog of Design Patterns 设计模式目录 The catalog beginning on page 93 contains23 design patterns. Their names and intents are listed next to give you an overview. The number in parentheses aft翻译 2013-07-22 10:01:00 · 1267 阅读 · 0 评论 -
DescribingDesign Patterns 描述设计模式
DescribingDesign Patterns描述设计模式How do we describe design patterns?Graphical notations, while important and useful, aren't sufficient. They simply capture the end product of thedesign process as re翻译 2013-07-20 15:36:41 · 1088 阅读 · 0 评论 -
Design Patterns in Smalltalk MVC 在Smalltalk的MVC设计模式
Design Patterns in Smalltalk MVC在Smalltalk的MVC设计模式 The Model/View/Controller (MVC) triad ofclasses [KP88] is used to build user interfaces in Smalltalk-80. Looking at thedesign patterns inside翻译 2013-07-19 19:39:36 · 1792 阅读 · 0 评论 -
What is a DesignPattern? 什么是设计模式
What is a DesignPattern? 什么是设计模式Christopher Alexander says, "Eachpattern describes a problem which occurs over and over again in our environment, and thendescribes the core of the solution to that p翻译 2013-07-17 21:33:48 · 1398 阅读 · 0 评论 -
设计模式之How to Select a Design Pattern 如何选择设计模式
如何正确选择设计模式翻译 2013-11-27 20:16:29 · 2259 阅读 · 0 评论