在哪里可以找到好的概述何时使用哪种创新设计模式 [英] Where to find a good overview when to use which creational Design-pattern

查看:64
本文介绍了在哪里可以找到好的概述何时使用哪种创新设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个概述,以立即找出何时使用以下哪种创建模式:

I am looking for an overview to immediately figure out when to use which of the following creational patterns:


  • Builder

  • 工厂

  • 抽象工厂

  • 原型

  • Builder
  • Factory
  • Abstract Factory
  • Prototype

以及最好还是坚持普通班。

And also when it is better to stick to a plain class.

您能提供一个很好的资源,还是用几句话来解释一下? 如果对象不依赖任何东西,请使用常规类,如果需要多个类似的构造,则通常首选工厂。

Can you provide a good resource, or maybe explain it in a few sentences e.g. "if an object is depending on nothing, use a normal class, if multiple similar constructions are needed, then usually factory is preferred."

推荐答案

我通常指的是 OODesign

他们提供良好的模式说明。另外还有何时使用,常用部分,可帮助您快速参考。

They provide good explanation of patterns. Also there are section 'When to Use' , 'Common Usage' that help for quick reference.

这篇关于在哪里可以找到好的概述何时使用哪种创新设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆