📄 csdn_文档中心_为什么要学习设计模式(design patterns) - 软件设计大师之路.htm
字号:
<TBODY>
<TR>
<TD align=middle bgColor=#fafafa class=td1 vAlign=top width=150><BR>
<SCRIPT
src="CSDN_文档中心_为什么要学习设计模式(Design Patterns) - 软件设计大师之路.files/microsoft.js"></SCRIPT>
</TD>
<TD align=middle width=620>
<TABLE bgColor=#eeeeee border=0 cellPadding=0 cellSpacing=0 width=600>
<TBODY>
<TR bgColor=#ffffff>
<TD align=middle height=10 width=50></TD>
<TD align=right><A href="http://www.csdn.net/">CSDN</A> - <A
href="http://www.csdn.net/develop/">文档中心</A> - <FONT
color=#003399>Visual C++</FONT> </TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399 height=10><FONT
color=#ffffff>标题</FONT></TD>
<TD><B> 为什么要学习设计模式(Design Patterns) -
软件设计大师之路</B> bugn(翻译) </TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399><FONT color=#ffffff>关键字</FONT></TD>
<TD width=500> 为什么要学习设计模式(Design Patterns) -
软件设计大师之路</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR></TBODY></TABLE><!--文章说明信息结束//-->
<TABLE border=0 width=600>
<TBODY>
<TR>
<TD align=left><BR>
<META content="Microsoft Visual Studio 6.0" name=GENERATOR>
<STYLE>H1 {
FONT-SIZE: 12pt
}
BODY {
FONT-SIZE: 11pt
}
TABLE {
FONT-SIZE: 11pt
}
A:link {
TEXT-DECORATION: underline
}
</STYLE>
<P>以下比喻摘自Douglas Schmidt, bugn翻译.</P>
<H1>知识的模式(Patterns of Learning)</H1>
<P>在人类努力解决的许多领域的成功方案都来源于各种模式(Patterns).</P>
<P>事实上, 教育的一个重要目标就是把知识的模式一代一代传下去.</P>
<P>下面我们首先看一下学习下棋是怎样用到模式(patterns).<BR>学习开发一个好的程序类似于学习怎样下好棋.</P>
<P>成为一个象棋大师<BR>* 首先学习规则和必要条件<BR> 例如, 棋子的名称, 合法的棋子移动,
棋盘的几何形状和方向等<BR>* 然后学习原理<BR> 例如某一种棋子的相对价值, 中心格的战略价值,
威胁的强度等<BR>* 然而要成为象棋大师, 你必须要学习其他大师下过的棋局<BR>
这些棋局就包含有模式(patterns),这些模式(patterns)必须被理解,记忆和重复的运用<BR>*
有很多种这样的模式(patterns)</P>
<P>成为一个软件设计大师<BR>* 首先学习规则<BR> 例如算法, 数据结构和软件语言<BR>*
然后学习原理<BR> 例如结构化编程, 模块化编程, 面向对象编程, 泛编程(general
programming)等<BR>* 但是要真正的精通软件设计, 你必须学习其他大师级的设计<BR>
这些设计包含的模式(patterns)必须被理解,记忆和重复的运用<BR>* 有很多种这样的模式(patterns)</P>
<P>翻译水平有限,以下附上原文:</P>
<P><STRONG>Patterns of Learning</STRONG></P>Successful solutions to
many areas of human endeavor are deeply rooted in patterns<BR>In
fact, an important goal of education is transmitting patterns of
learning<BR>from generation to generation<BR> Below, we'll
explore how patterns are used to learn chess<BR> Learning to
develop good software is similar to learning to play good chess<BR>
<P><STRONG>Becoming a Chess Master</STRONG></P>1) First learn rules
and physical requirements<BR> e.g., names of pieces, legal
movements, chess board geometry and orientation, etc. 2) Then learn
principles <BR> e.g., relative value of certain pieces,
strategic value of center squares, power of a threat, etc.<BR>3)
However, to become a master of chess, one must study the games of
other masters<BR> These games contain patterns that must be
understood, memorized, and applied repeatedly<BR>4) There are
hundreds of these patterns
<P><STRONG>Becoming a Software Design Master</STRONG></P>
<P>First learn the rules<BR>e.g., the algorithms, data structures
and languages of software</P>
<P>Then learn the principles<BR>e.g., structured programming,
modular programming, object oriented programming, generic
programming, etc.</P>
<P>However, to truly master software design,one must study the
designs of other masters<BR>These designs contain patterns must be
understood, memorized, and applied repeatedly</P>
<P>There are hundreds of these
patterns<BR></P><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<TABLE align=center bgColor=#006699 border=0 cellPadding=0 cellSpacing=0
width=770>
<TBODY>
<TR bgColor=#006699>
<TD align=middle bgColor=#006699 id=white><FONT
color=#ffffff>对该文的评论</FONT></TD>
<TD align=middle>
<SCRIPT
src="CSDN_文档中心_为什么要学习设计模式(Design Patterns) - 软件设计大师之路.files/readnum.htm"></SCRIPT>
</TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1
src="CSDN_文档中心_为什么要学习设计模式(Design Patterns) - 软件设计大师之路.files/ico_pencil.gif"
width=16> </SPAN> myan <I>(2001-1-15 18:38:46)</I>
</TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>bugn兄对设计模式可有兴趣? 我最近正为理解那本书发愁,
烦劳以后多多指教 <BR></TD></TR></TBODY></TABLE>
<TABLE align=center bgColor=#666666 border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TD bgColor=#cccccc colSpan=3><SPAN style="COLOR: #cccccc"><IMG height=16
hspace=1
src="CSDN_文档中心_为什么要学习设计模式(Design Patterns) - 软件设计大师之路.files/ico_pencil.gif"
width=16> </SPAN> myan <I>(2001-1-15 18:37:58)</I>
</TD></TR>
<TR>
<TD bgColor=#ffffff colSpan=3 width=532><BR>bugn兄对设计模式可有兴趣? 我最近正为理解那本书发愁,
烦劳以后多多指教 <BR></TD></TR></TBODY></TABLE><BR>
<DIV align=center>
<TABLE align=center bgColor=#cccccc border=0 cellPadding=2 cellSpacing=1
width=770>
<TBODY>
<TR>
<TH bgColor=#006699 id=white><FONT
color=#ffffff>我要评论</FONT></TH></TR></TBODY></TABLE></DIV>
<DIV align=center>
<TABLE border=0 width=770>
<TBODY>
<TR>
<TD>你没有登陆,无法发表评论。 请先<A
href="http://www.csdn.net/member/login.asp?from=/Develop/read_article.asp?id=3327">登陆</A>
<A
href="http://www.csdn.net/expert/zc.asp">我要注册</A><BR></TD></TR></TBODY></TABLE></DIV><BR>
<HR noShade SIZE=1 width=770>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=500>
<TBODY>
<TR align=middle>
<TD height=10 vAlign=bottom><A
href="http://www.csdn.net/intro/intro.asp?id=2">网站简介</A> - <A
href="http://www.csdn.net/intro/intro.asp?id=5">广告服务</A> - <A
href="http://www.csdn.net/map/map.shtm">网站地图</A> - <A
href="http://www.csdn.net/help/help.asp">帮助信息</A> - <A
href="http://www.csdn.net/intro/intro.asp?id=2">联系方式</A> - <A
href="http://www.csdn.net/english">English</A> </TD>
<TD align=middle rowSpan=3><A
href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010"><IMG
border=0 height=48
src="CSDN_文档中心_为什么要学习设计模式(Design Patterns) - 软件设计大师之路.files/biaoshi.gif"
width=40></A></TD></TR>
<TR align=middle>
<TD vAlign=top>百联美达美公司 版权所有 京ICP证020026号</TD></TR>
<TR align=middle>
<TD vAlign=top><FONT face=Verdana>Copyright © CSDN.net, Inc. All rights
reserved</FONT></TD></TR>
<TR>
<TD height=15></TD>
<TD></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV><!--内容结束//--><!--结束//--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -