码迷,mamicode.com
首页 >  
搜索关键字:design-pattern    ( 575个结果
设计模式1
设计模式(Design Patterns) ——可复用面向对象软件的基础设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,....
分类:其他好文   时间:2015-08-05 20:01:28    阅读次数:131
Strategy Design Pattern(策略模式)
策略模式意义在于,当我们有多种不同的算法时,程序能够动态的选择算法进行计算。 策略模式的另外一个英文名字是Policy Strategy。 策略模式最典型的里一个例子就是JAVA中复杂对象的排序(java.util.Arrays.sort...
分类:其他好文   时间:2015-08-04 23:24:30    阅读次数:389
Java开发中的23种设计模式详解
转自http://zz563143188.iteye.com/blog/1847029设计模式(Design Patterns)——可复用面向对象软件的基础设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码...
分类:编程语言   时间:2015-08-03 14:23:30    阅读次数:150
Bridge Design Pattern (桥模式)
桥模式的核心思想在于:抽象和行为分离。 在JDON里面,板桥里人举的例子是咖啡(抽象)与加奶(行为)的关系。原文(http://www.jdon.com/designpatterns/bridge.htm) 意思比较清晰,比如说,按照排列组合关系,...
分类:其他好文   时间:2015-08-03 01:20:10    阅读次数:161
Design Pattern Explained 读书笔记四——Strategy
## Strategy Pattern ##What?Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from the clients that use it. ——GOF定义一系列算...
分类:其他好文   时间:2015-07-31 01:22:27    阅读次数:160
Design Pattern Explain 读书笔记一 重新认识面向对象|规范使用UML
新视角看面向对象 与 UML图什么是内聚性 closely the operations in a routine are related. 就是一个类中,各个方法之间的联系的紧密程度。内聚就是一个模块内各个元素彼此结合的紧密程度,高内聚就是一个模块内各个元素彼此结合的紧密程度高。 所谓高内聚是指一个软件模块是由相关性很强的代码组成,只负责一项任务,也就是常说的单一责任原则。低内聚就是...
分类:其他好文   时间:2015-07-30 23:28:51    阅读次数:246
Design Pattern Explain 读书笔记三——Adapter
What?Convert the interface of a class into another interface that the clients expect. Adapter lets classes work together that could not otherwise because of incompatible inter- faces. ——GOF 先来个例子:...
分类:其他好文   时间:2015-07-29 01:04:53    阅读次数:146
java 设计模式
设计模式(Design Patterns) ——可复用面向对象软件的基础设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,设...
分类:编程语言   时间:2015-07-26 20:32:06    阅读次数:139
Template design pattern application in android
The template method allow separate the generic method from a detail context(class) via inheritance Another advantage: 1.Inheritance implementation means that you will know the actual method implement...
分类:移动开发   时间:2015-07-22 16:05:50    阅读次数:140
模板方法模式
模板方法模式的定义 《Head First Design Pattern》中的英文定义:The Template Method defines the skeleton of an algorithm in a method, deferring some steps to subclasses. Template Method lets subclasses redefine certain st...
分类:其他好文   时间:2015-07-22 00:09:07    阅读次数:144
575条   上一页 1 ... 38 39 40 41 42 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!