请大家帮忙翻译下面一段有关设计模式方面的文章

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:23:40
设计模式是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。

毫无疑问,设计模式于己于他人于系统都是多赢的,设计模式使代码编制真正工程化,设计模式是软件工程的基石,如同大厦的一块块砖石一样。

GoF的“设计模式”是第一次将设计模式提升到理论高度,并将之规范化,本书提出了23种基本设计模式,自此,在可复用面向对象软件的发展过程中,新的大量的设计模式不断出现。

设计模式和框架

现在,可复用面向对象软件系统现在一般划分为三大类:应用程序 工具箱和框架(Framework),我们平时开发的具体软件都是应用程序;Java的API属于工具箱;而框架是构成一类特定软件可复用设计的一组相互协作的类。EJB(Enterprise JavaBeans)是Java应用于企业计算的框架.

框架通常定义了应用体系的整体结构 类和对象的关系等等设计参数,以便于具体应用实现者能集中精力于应用本身的特定细节。框架主要记录软件应用中共同的设计决策,框架强调设计复用,因此框架设计中必然要使用设计模式.

另外,设计模式有助于对框架结构的理解,成熟的框架通常使用了多种设计模式,如果你熟悉这些设计模式,毫无疑问,你将迅速掌握框架的结构,我们一般开发者如果突然接触EJB J2EE等框架,会觉得特别难学,难掌握,那么转而先掌握设计模式,无疑是给了你剖析EJB或J2EE系统的一把利器

The design pattern is a set is repeatedly used, the most people knows,
the process classification catalog, the code design experience
summary. The use design pattern is for may entrust with heavy
responsibility the code, let the code easily understand by the other
people, the guarantee code reliability.

Without a doubt, design pattern Yu Jiyu the other people all are win
to the system, the design pattern causes the code establishment true
project, the design pattern is the software engineering cornerstone,
is similar to the building block bricks and stones to be same.

GoF "the design pattern" will be first will design the pattern to
promote to the theory altitude, and the standardization, this book
proposed 23 kind of basic designs patterns, from now on, in might turn
round with in the object-oriented software developing process, the new
massive designs pattern unceasingly will appear.