设计模式类别 [英] Categories of design patterns

查看:92
本文介绍了设计模式类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经典的设计模式:可重用的面向对象软件的元素实际上向我们大多数人介绍了设计模式的想法。

The classic "Design Patterns: Elements of Reusable Object-Oriented Software" actually introduced most of us to the idea of design patterns.

但是这些天我发现诸如Martin Fowler撰写的企业应用程序体系结构模式(POEA)之类的书,在我的日常工作中更加有用。

However these days I find a book such as "Patterns of Enterprise Application Architecture" (POEA) by Martin Fowler, much more useful in my day to day work.

在与其他开发人员的讨论中,很多人(公平)地指出,.NET之类的框架正在慢慢开始提供GOF书中的许多模式,为什么?重新发明轮子?

In discussions with fellow developers, many make the (fair) point that frameworks like .NET are slowly starting to provide many of the patterns in the GOF book, and so why re-invent the wheel?

似乎很多开发人员都认为GOF书是唯一有价值的设计模式参考。因此,他们的逻辑是,因为框架(.NET等)为我们提供了许多GOF模式,所以模式已经出现并且不再重要。

It seems many developers think that the GOF book is the only reference worth having on design patterns. So their logic goes that because frameworks (.NET etc) are providing many GOF patterns for us, patterns have seen their day and are no longer as important.

至少对我来说),当我提到POEA中描述的模式时,经常会遇到空白的凝视。

Surprisingly (to me at least) when I mention the patterns descibed in POEA, I am often met with blank stares.

POEA证明了模式不仅限于Interators,Singletons,Command等。我还要说的是,GOF中的模式实际上只是模式的独特类别,适用于与POEA不同的设计级别(不重叠)。

POEA proves that patterns are more than just Interators, Singletons, Commands etc. I would also say that the patterns in GOF are really just a distinct "category" of patterns, applicable to a different (non-overlapping) level of design, than those in POEA.

那么,在您的开发中还应用了哪些其他类别模式?这些模式适用于什么级别的设计?通常在开发过程中的什么时候使用它们?

So, what other "categories" of patterns have applied in your development? What level of design do these patterns apply to? At what point in the development process are they normally used? Is there a book or reference for these patterns?

推荐答案

CategoryPatterns 包含模式分类列表。

前三个是GoF模式


  • 创意

  • 结构化

  • 行为

然后有特定于问题的问题

Then there are problem specific problems


  • 安全性

  • 并发性

  • RealTime

Fowler模式是企业应用程序模式。还有企业集成模式。 UI模式也存在..依此类推...

Fowler's pattern are Enterprise Application Patterns. There are also Enterprise Integration Patterns. UI patterns also exist.. and so on...

这篇关于设计模式类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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