📄 200603061709535.html
字号:
<html>
<head><title>模式</title></head>
<center><h1>模式</h1></center>
<div><P align=right><FONT color=#f70938><FONT face=黑体><a href="200604112229525.html" tppabs="http://www.itisedu.com/phrase/200604112229525.html" target="_new">中科永联</a>高级技术培训中心(</FONT><FONT face=黑体>www.itisedu.com</FONT><FONT face=黑体>)<IMG src="20063271985101.jpg" tppabs="http://www.itisedu.com/manage/Upload/image/20063271985101.jpg" border=0></FONT></FONT></P>
<P><FONT face=Verdana> <a href="200603061709535.html" tppabs="http://www.itisedu.com/phrase/200603061709535.html" target="_new">模式</a>,即<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231320535.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231320535.html'" tppabs="http://www.itisedu.com/phrase/200604231320535.html" target="_new">pattern</a>。其实就是解决某一<a href="200603090857555.html" tppabs="http://www.itisedu.com/phrase/200603090857555.html" target="_new">类</a>问题的方法论。你把解决某类问题的方法总结归纳到理论高度,那就是模式。</FONT></P>
<P><FONT face=Verdana> Alexander给出的经典定义是:每个模式都描述了一个在我们的环境中不断出现的问题,然后描述了该问题的解决方案的核心。通过这种方式,你可以无数次地使用那些已有的解决方案,无需在重复相同的工作。<BR>模式有不同的领域,建筑领域有建筑模式,<a href="200604232134205.html" tppabs="http://www.itisedu.com/phrase/200604232134205.html" target="_new">软件</a>设计领域也有<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603061631585.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603061631585.html'" tppabs="http://www.itisedu.com/phrase/200603061631585.html" target="_new">设计模式</a>。当一个领域逐渐成熟的时候,自然会出现很多模式。</FONT></P>
<P><FONT face=Verdana><STRONG>为什么要用模式?</STRONG></FONT></P>
<P><FONT face=Verdana> 因为模式是一种指导,在一个良好的指导下,有助于你完成任务,有助于你作出一个优良的设计方案,达到事半功倍的效果。而且会得到解决问题的最佳办法。</FONT></P><FONT face=Verdana>
<P><BR><STRONG>常见的设计模式有什么?</STRONG></P>
<P> 首先,你要了解的是<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603061811045.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603061811045.html'" tppabs="http://www.itisedu.com/phrase/200603061811045.html" target="_new">GOF</a>的《设计模式--可复用<a href="200603101726185.html" tppabs="http://www.itisedu.com/phrase/200603101726185.html" target="_new">面向对象</a>软件的基础》一书(这个可以说是<a href="200604232224305.html" tppabs="http://www.itisedu.com/phrase/200604232224305.html" target="_new">程序</a>员必备的了),注意:GOF不是一个人,而是指四个人。它的原意是Gangs Of Four,就是“四人帮”,就是指此书的四个作者:Erich Gamma,Richard Helm,Ralph Johnson,John Vlissides。这本书讲了23种主要的模式,包括:抽象工厂、适配器、外观模式等。</P>
<P> 还有其他的很多模式,估计有100多种。</P>
<P> <a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604241215515.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604241215515.html'" tppabs="http://www.itisedu.com/phrase/200604241215515.html" target="_new">软件设计模式</a>太多,就我的理解简单说一下最常见的<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231324325.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231324325.html'" tppabs="http://www.itisedu.com/phrase/200604231324325.html" target="_new">MVC模式</a>。</P>
<P> <a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603071552065.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603071552065.html'" tppabs="http://www.itisedu.com/phrase/200603071552065.html" target="_new">MVC</a>模式是1996年由Buschmann提出的:</P>
<P> 模型(Model):就是封装数据和所有基于对这些数据的操作。<BR> <a href="200603141659315.html" tppabs="http://www.itisedu.com/phrase/200603141659315.html" target="_new">视图</a>(View):就是封装的是对数据显示,即用户界面。<BR> 控制器(Control):就是封装外界作用于模型的操作和对数据流向的控制等。</P>
<P> 另外:<a href="200604231308415.html" tppabs="http://www.itisedu.com/phrase/200604231308415.html" target="_new">RUP</a>(<a href="200604032121225.html" tppabs="http://www.itisedu.com/phrase/200604032121225.html" target="_new">Rational</a> Unified Process)软件统一过程,<a href="200604231325145.html" tppabs="http://www.itisedu.com/phrase/200604231325145.html" target="_new">XP</a>(<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604231325295.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604231325295.html'" tppabs="http://www.itisedu.com/phrase/200604231325295.html" target="_new">Extreme Programming</a>)极端编程,这些通常被叫做“过程方法”,是一种软件项目实施过程的方法论,它是针对软件项目的实施过程提出的方法策略。也是另一个角度的模式。<BR></FONT></P></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -