<?xml version="1.0" encoding="gb2312"?>

<!-- RSS generated by oioj.net on 4/16/2004 ; 感谢LeXRus提供 RSS 2.0 文档; 此文件可自由使用，但请保留此行信息 --> 
<!-- Source download URL: http://blogger.org.cn/blog/rss2.asp       -->
<rss version="2.0">

<channel>
<title>owenbango的博客</title>
<link>http://blogger.org.cn/blog/blog.asp?name=owenbango</link>
<description>owenbango的博客</description>
<copyright>blogger.org.cn</copyright>
<generator>W3CHINA Blog</generator>
<webMaster>webmaster@blogger.org.cn</webMaster>
<item>
<title><![CDATA[Lawyers Fought U.S. Move to Curb Tobacco Penalty]]></title>
<link>http://blogger.org.cn/blog/more.asp?name=owenbango&amp;id=6603</link>
<author>owenbango</author>
<pubDate>2005/6/16 22:20:38</pubDate>
<description><![CDATA[
<DIV class=timestamp><FONT face="Century Gothic">June 16, 2005</FONT></DIV></NYT_HEADLINE><NYT_BYLINE type=" " version="1.0">
<DIV class=byline><FONT face="Century Gothic">By </FONT><A title="More Articles by Eric Lichtblau" onclick="javascript:s_code_linktrack('Article-Byline');" href="http://query.nytimes.com/search/query?ppds=bylL&amp;v1=ERIC LICHTBLAU&amp;fdq=19960101&amp;td=sysdate&amp;sort=newest&amp;ac=ERIC LICHTBLAU&amp;inline=nyt-per"><FONT face="Century Gothic">ERIC LICHTBLAU</FONT></A><FONT face="Century Gothic"> </FONT></DIV></NYT_BYLINE><NYT_TEXT>
<DIV id=articleBody>
<P><FONT face="Century Gothic">WASHINGTON, June 15 - Senior Justice Department officials overrode the objections of career lawyers running the government's tobacco racketeering trial and ordered them to reduce the penalties sought at the close of the nine-month trial by $120 billion, internal documents and interviews show. </FONT></P>
<P><FONT face="Century Gothic">The trial team argued that the move would be seen as politically motivated and legally groundless.</FONT></P>
<P><FONT face="Century Gothic">"We do not want politics to be perceived as the underlying motivation, and that is certainly a risk if we make adjustments in our remedies presentation that are not based on evidence," the two top lawyers for the trial team, Sharon Y. Eubanks and Stephen D. Brody, wrote in a memorandum on May 30 to Associate Attorney General Robert D. McCallum that was reviewed by The New York Times. </FONT></P>
<P><FONT face="Century Gothic">The two lawyers said the lower penalty recommendation ordered by Mr. McCallum would weaken the department's position in any possible settlement with the industry and "create an incentive for defendants to engage in future misconduct by making the misconduct profitable."</FONT></P>
<P><FONT face="Century Gothic">At the close of a major trial that dozens of Justice Department lawyers spent more than five years preparing, the department stunned a federal courtroom last week by reducing the penalties sought against the industry, from $130 billion to $10 billion, over accusations of fraud and racketeering. </FONT></P>
<P><FONT face="Century Gothic">The decision generated protests from health advocates and Democratic lawmakers, who accused the Bush administration of political motives, and it prompted an internal departmental inquiry. But details of the behind-the-scenes debate over the issue had remained a mystery.</FONT></P>
<P><FONT face="Century Gothic">The department has vigorously defended the decision, denying political motives and saying the $10 billion reflected an effort to arrive at a figure that would comply with an adverse decision from an appellate court this year that some officials said sharply limited the types of sanctions the department could seek. The department did not dispute the authenticity of the memorandum but declined to make Mr. McCallum or other lawyers available to discuss it. </FONT></P>
<P><FONT face="Century Gothic">A spokesman for the department, Kevin Madden, said political considerations were never factored into the decision to reduce the penalty. </FONT></P>
<P><FONT face="Century Gothic">"This was a decision that was made on the merits of the case and that strictly followed the law," Mr. Madden said. </FONT></P>
<P><FONT face="Century Gothic">In light of the appellate court ruling, he said, "a decision was made by the department that the best argument for the government to make was one that would preserve credibility in the government's case with the trial judge, would result in a favorable decision from the trial judge and would result in a trial court decision sustainable upon appeal." </FONT></P>
<P><FONT face="Century Gothic">The newly disclosed documents make clear that the decision was made after weeks of tumult in the department and accusations from lawyers on the tobacco team that Mr. McCallum and other political appointees had effectively undermined their case. Mr. McCallum, No. 3 at the department, is a close friend of President Bush from their days as Skull &amp; Bones members at Yale, and he was also a partner at an Atlanta law firm, Alston &amp; Bird, that has done legal work for R.J. Reynolds Tobacco, part of Reynolds American, a defendant in the case. </FONT></P>
<P><FONT face="Century Gothic">"Everyone is asking, 'Why now?' " said a Justice Department employee involved in the case who insisted on anonymity for fear of retaliation. "Why would you throw the case down the toilet at the very last hour, after five years?"</FONT></P>
<P><FONT face="Century Gothic">Ultimately, Mr. McCallum overruled the objections from the trial team, and the documents and interviews suggest that his senior aides took the unusual step of writing parts of the closing argument that Ms. Eubanks delivered last week in federal court in seeking the reduction in penalties. </FONT></P>
<P><FONT face="Century Gothic">Officials who insisted on anonymity said the change on the penalties provoked such strong objections from the trial team that some lawyers threatened to quit. Department officials have now proposed that a lower-level lawyer who has outlined the reasons for reduced penalties take over crucial parts of the remainder of the trial. </FONT></P>
<P><FONT face="Century Gothic">In another memorandum sent on Tuesday that was also reviewed by The Times, a senior official in the criminal division of the department recommended that the lower-level lawyer on the team, Frank Marine, who has supported the $10 billion penalty internally and publicly, "be in charge of preparing" the final briefs and the proposed order on penalties. </FONT></P>
<P><FONT face="Century Gothic">That work would normally go to Ms. Eubanks, director of the team. Department officials said Wednesday that there had been no decision to replace Ms. Eubanks.</FONT></P>
<P><FONT face="Century Gothic">Mr. McCallum, in an op-ed article last week in USA Today, said the new decision on the penalties had been driven by an appellate decision in February that found any damages had to be "forward looking" to prevent future wrongful acts. </FONT></P>
<P><FONT face="Century Gothic">"The trial court and the government are bound by this decision," he wrote, and that led the department to propose the $10 billion penalty to pay for a stop-smoking program.</FONT></P>
<P><FONT face="Century Gothic">A judge will make the final decision on the penalty.</FONT></P>
<P><FONT face="Century Gothic">The explanations have not quieted complaints from Democrats. A group of 50 lawmakers sent a letter to Attorney General Alberto R. Gonzales on Wednesday urging him not to agree to an accord with the tobacco industry "based on the unreasonably weak demands made by the government last week."</FONT></P>
<P><FONT face="Century Gothic">This week, in response to Democrats' protests, the department disclosed that its Office of Professional Responsibility, which handles ethics complaints, planned to investigate accusations, largely by Democrats, of interference in the case.</FONT></P>
<P><FONT face="Century Gothic">Although Ms. Eubanks and Mr. Brody said in their May 30 memorandum that the lower penalty could create a perception of interference, they gave no direct evidence to show that the decision was politically motivated. Still, the disclosure that career lawyers strongly objected is highly likely to provoke further accusations by antismoking advocates and Congressional Democrats. </FONT></P>
<P><FONT face="Century Gothic">In saying the decision was politically motivated, critics have pointed not only to Mr. McCallum's role at a law firm tied to the industry, a role that a Justice Department ethics office ruled did not prevent him from overseeing the case, but also to the industry's political contributions to the Republican Party. The industry gave $2.7 million to Republicans last year and $938,000 to Democrats.</FONT></P>
<P><FONT face="Century Gothic">In their seven-page memorandum, Ms. Eubanks and Mr. Brody offered a point-by-point rebuttal to what they characterized as Mr. McCallum's "watered down approach." They said the higher penalty, as outlined by a health expert last month, was in keeping with the appellate court's "forward looking" approach and would help millions of people quit smoking in the next 25 years. </FONT></P>
<P><FONT face="Century Gothic">The trial team lawyers also suggested that resistance to the $130 billion plan by senior Justice Department officials grew out of "sticker shock" over the costs that the industry would pay for the stop-smoking program. </FONT></P>
<P><FONT face="Century Gothic">The lawyers also expressed some frustration that Mr. McCallum had already reached a preliminary decision to reduce the proposed penalty "without reviewing the evidence that supports our factual and legal arguments." They said "it is regrettable that no one would even review" their rationale "and tell us where it went wrong."</FONT></P>
<P><FONT face="Century Gothic">The memorandum also questioned the handling of some government witnesses who were asked to alter their written testimony to reflect the department's concerns. </FONT></P>
<P><FONT face="Century Gothic">One witness, Matthew Myers, president of the Campaign for Tobacco-Free Kids, said in an interview Wednesday that Ms. Eubanks called him last month, hours before his final written testimony was due to be filed, and told him that Mr. McCallum and other senior officials wanted him to eliminate part of the testimony. The part the department wanted to omit, Mr. Myers said, centered on antismoking steps that he believed were wrongly omitted from the tobacco settlement in 1997, including limits on advertising.</FONT></P>
<P><FONT face="Century Gothic">"Eubanks was the good trouper, and she didn't let on at all what she thought of the request" to omit part of his testimony, Mr. Myers said. "But I said: 'No, I won't change it. It is what it is.' " </FONT></P>
<P><FONT face="Century Gothic">In the end, the only change he agreed to was an additional line that he did not know the steps the department would seek in the current case. Mr. Myers said he remained troubled by the case. </FONT></P>
<P><FONT face="Century Gothic">"To have the lawyers work on a case this long," he said, "and then just have the department basically throw it out seems despicable to me." </FONT></P></DIV>]]></description>
</item><item>
<title><![CDATA[中国十大经典遗言]]></title>
<link>http://blogger.org.cn/blog/more.asp?name=owenbango&amp;id=6600</link>
<author>owenbango</author>
<pubDate>2005/6/16 21:44:52</pubDate>
<description><![CDATA[<P><BR><BR><STRONG>中国十大经典遗言<BR><BR><!----><BR></STRONG><SPAN class=tpc_content><FONT size=2>1、三国周渝：既生渝，何生亮？ <BR>2、西楚霸王项羽：时不利兮骓不逝，虞姬虞姬奈若何？ <BR>3、戊戌六君子之谭嗣同：有心杀贼，无力回天！ <BR>4、宋代诗人陆游：王师北定中原日，家祭勿忘告乃翁。 <BR>5、革命领袖孙文：革命尚未成功，同志仍需努力。 <BR>6、宋代爱国名士文天详 ：人生自古谁无死，留取丹心照汗青 <BR>7、伟大的爱国者屈原：举世皆浊我独清，众人皆醉我独醒。 <BR>8、三十年代影星阮玲玉：不死不足以明我冤！ <BR>9、革命烈士夏明翰： 杀了我一个，还有后来人。 <BR><BR>特别奖：这草有毒！ （神农氏） <BR><BR><BR>此外，民间还流传着不少脍炙人口大家耳熟能详的遗言： <BR><BR>1、十八年后老子又是一条好汉！ <BR>2、人死不过头点地 ！ <BR>3、要杀要剐悉听尊便，动手吧！ <BR>4、这是我的党费！ <BR>5、孩子！不要报仇！！ <BR>6、老婆！我死了以后你就改嫁吧！ <BR>7、我觉得我还可以抢救一下！ </FONT></SPAN></P>
<P><SPAN class=tpc_content>“为了新中国，前进！！！”<BR>　　——董存瑞的遗言<BR><BR>在某处看到——“我靠，这草有毒”（神农氏）<BR><BR>“英特耐雄奈尔……一定会实现……”<BR>　&nbsp; &nbsp;&nbsp;&nbsp;周总理逝世前对邓颖超大姐说的话<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;悲欣交集。<BR><BR>凶手是...是...是...<BR>　　(两眼一翻,驾鹤仙去;空留生者捶头顿足ing0<BR><BR>瞿秋白：中国的豆腐真好吃啊！<BR>　　金圣叹评：豆腐与花生同食，有肉味！<BR><BR>莲弟，我爱你！——央视版笑傲江湖中东方不败的遗言~~~<BR><BR>“花生和豆干合在一起吃有火腿的味道，不要告诉别人”<BR>　　——————————金圣叹临刑前留给儿子的遗言<BR><BR>想起电影《红高粱》中我爷爷最后的遗言：<BR>　　日本人，我操你祖宗！<BR><BR>忘记我，管自己的生活---------鲁迅<BR><BR>砍头不过头点地，<BR>　　要死也要吊朝天.<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;----某无名大侠<BR><BR>"表哥,你一定要替我报仇~~!"&lt;东成西就&gt;里欧阳风(梁朝伟饰)的表妹中了"大海无量"是对欧阳风说的遗言<BR><BR>我想做个好人你们为什么不给我机会？？<BR>　　&nbsp; &nbsp;——————刘健明(刘德华)<BR><BR>对不起，我是警察<BR>　　 -----------杨锦荣(黎明)<BR><BR>阿基米德：“别碰我的圆！<BR><BR>黛玉说:宝玉,你好^^^^^^^^^<BR></SPAN></P>]]></description>
</item><item>
<title><![CDATA[设计模式（四人帮版）翻译（1）]]></title>
<link>http://blogger.org.cn/blog/more.asp?name=owenbango&amp;id=6599</link>
<author>owenbango</author>
<pubDate>2005/6/16 21:42:41</pubDate>
<description><![CDATA[转载自: <A href="http://blogger.org.cn/blog/more.asp?name=torrent&amp;id=6597" target=_blank>http://blogger.org.cn/blog/more.asp?name=torrent&amp;id=6597</A><BR><BR>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align=center><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">介绍</SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 14pt"><?xml:namespace prefix = o /><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">面向对象软件的设计是困难的，而可重用的面向对象软件的设计则更难。首先必须找出目标对象，按照合适的粒度规入类，并为类定义接口和层次，及在类之间建立合适的关系。设计必须能解决当前的问题，而且要有一定的通用性以满足未来的需求，尽量的避免重新设计。有经验的设计人员将告诉你，在最先的设计中没有良好定义的情况下，要得到一个可重用的灵活的设计是多么的困难。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">富有经验的设计人员能做出好的设计，然而新手在可能的选择中犹豫不决，并常常导致采用他们以前用过的非对象技术。新手们要花很长的时间才能学会好的对象程序设计。显然，有经验的设计人员拥有新手们所不拥有的东西，是什么呢？？</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">专业设计人员所拥有的第一个优势是，不（必）用</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">first</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原则来解决每一个问题，他们可以采用以前用过的解决方案。当发现一个好的解决方案时，他们一次又一次的使用它。这种经验也是使他们成为专家的原因之一。其结果是，你能够在很多面向对象系统中发现重复出现的类模式和通信对象，这些模式解决了某类特定的设计问题，并使得面向对象的设计变得更加灵活、优雅、最终可重用。熟悉这些模式的设计者可以立即将其应用到设计中而不需要重新发现它们。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">象小说家和剧作家就常常任用老的模式如悲剧英雄、浪漫小说等等。同样的，设计者们也经常采用一定的模式如用对象表示状态、装饰对象以添加特征等等。一旦你掌握了设计模式，就能够自动的运用许多设计决策。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们都知道设计经验的重要性。你是否有过这样的经历，在你设计的过程中碰到了一个似曾相识的问题，如是你搅尽脑汁去回忆是在什么情况下、在什么地方、用什么方法解决的。如果你能回忆起其细节，你就能够重用过去的经验来解决它。然而，我们对这种过去软件设计的经验并没有作出良好的记录以利其他人也能够重用它。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本书的目的就是记录在面向对象软件过程当中的经验，我们称之为设计模式。对每一种设计模式系统的命名、解释和评估，目标是来捕获人们能够有效应用的设计经验的具体形式。为了达到此目的，我们文档化了一些最重要的设计模式。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">设计模式使得重用成功的设计和架构更为容易。其</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Expression Proven</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">方法使得其在新系统中的应用更为容易。设计模式能够帮助你选择那些可重用的设计。通过对类、对象交互及其深层次意图的详细说明，设计模式甚至能提高现有系统的可维护性和文档质量。简言之，设计模式能帮助更快的作出正确的设计。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本书中并未给出新的或未证明的设计模式，这里的设计模式都是那些在不同的系统中多次应用的设计，而大多数这样的设计以前都没有文档化过。它们以前仅在面向对象研究团体中流传，或是成功的面向对象系统中的一些元素，这对于新手来说，每一种方式都不不易学习到。虽然这些设计方法都不是新的，我们以一种新的和可学习的方式来得到它们：作为具有一致格式的一类设计模式。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">限于篇幅，本文仅给出专家所知的部分设计模式，不包括那些处理同步、分布式系统和实时系统中的设计模式，也不包括那些针对特定应用领域的设计模式；这里也并不会教你如何建立用户接口、如何写设备驱动、如何处理面向对象数据库。以上所说的领域具有自己独特的模式，值得将来有人为之分类编写。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><o:p><FONT face="Times New Roman">&nbsp;</FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align=center><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">什么是设计模式？？</SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 14pt"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN lang=EN-US><FONT face="Times New Roman">Christopher Alexander</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说过，每一种设计模式都是在讨论一类一次一次重复发生的问题，而规定对这类问题的解决方案的核心部分，。。。。。</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Alexander</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所说的模式是在建筑领域，但其对于面向对象设计模式同样适用。在我们的讨论环境中，不过是用对象和接口代替了墙和门窗，但两类设计模式的核心都是针对各自领域中的某类问题的解决方案。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通常，一个模式具有四个关键要素：</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; mso-char-indent-count: 1.71"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模式名（</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">pattern name</FONT></SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）</SPAN></B><FONT face="Times New Roman"> </FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们用其来规定一类设计问题、对该类问题的解决方案和结果。通过对模式命名扩大了设计词汇，容许我们在设计时采用更高一层的抽象，使得对设计的考虑和交流更为容易。对模式的好的命名是我们工作的难点之一。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; mso-char-indent-count: 1.71"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">问题（</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">problem</FONT></SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）</SPAN></B><FONT face="Times New Roman"> </FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">描述了何时使用模式。它解释了问题及其应用环境，可能是对特定设计问题的描述如如何用对象来表示算法，亦可能是对类和对象结构的描述如某种固定的设计中出现的类和对象的结构。有时，问题（）也可以包括条件列表，。。。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; mso-char-indent-count: 1.71"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">解决方案（</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">solution</FONT></SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）</SPAN></B><FONT face="Times New Roman"> </FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">解决方案描述了很多基本元素，包括组成设计的元素、以及它们之间的关系、职责和协作。解决方案中不包括具体的设计和实现，因为模式必须应用于不同的环境。取而代之的是，模式提供对某类设计问题和怎样布置这些元素的抽象描述。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; mso-char-indent-count: 1.71"><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">后果（</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">consequences</FONT></SPAN></B><B style="mso-bidi-font-weight: normal"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）</SPAN></B><FONT face="Times New Roman"> </FONT><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">应用模式的结果和费用的评估。实际上，它是对模式的评估，软件的设计通常关心时间和空间的耗费，后果（）也是选择语言和具体实现的依据之一。由于重用是面向对象的目的之一，模式的后果（）也包括任用该模式在灵活性、可扩展性和轻便性方面的影响。列出后果（）可帮助你更好的理解和评估一个模式。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个人观点影响着对某个设计是不是模式的判断，某人的模式可能只是另一个人的元构建块。本书中我们将模式浓缩为某一级别的抽象，本书的设计模式不包括诸如链表、哈希表一类的可在类中实现和编码的设计，也不包括那些复杂的、针对整个应用或子系统的设计。本书所说的模式是在某一环境中用来解决一种通用设计问题的，类和对象之间通信的描述。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">设计模式的命名、抽象描述、以及其设计结构的核心因素的识别，都有助于可重用的面向对象设计。设计模式致力于识别参与的类和实例、它们的角色和协作关系、以及各自的职责。每一个设计模式关注着特定的面向对象设计问题。设计模式描述了何时应用、再有设计约束时能否应用、以及其应用的后果和费用的评估。由于我们必须最后实现设计，设计模式可以用</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">C++</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Smalltalk</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">代码来演示。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 17.95pt; mso-char-indent-count: 1.71"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">编程语言的选择非常重要，因为它影响着我们的观点。我们的模式基于</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">C++/Smalltalk</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言，这种选择决定了某模式实现的难易。例如，如果我们选择过程语言，我们的设计模式中可能包括类似“继承”、“封装”、“多态”等模式。类似的，我们讨论的有些模式可能为某种语言所直接支持，例如，</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">CLOS</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中有很多方法就实现了我们所讨论的</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Visitor</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模式。实际上，</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">C++</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Smalltalk</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">也有很多不同之处，这意味着某个模式可能用某种语言实现起来比另外一种要容易。（例如</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">Iterator</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模式）</SPAN></P>]]></description>
</item><item>
<title><![CDATA[今天听了唐俊先生的讲座]]></title>
<link>http://blogger.org.cn/blog/more.asp?name=owenbango&amp;id=6598</link>
<author>owenbango</author>
<pubDate>2005/6/16 21:38:46</pubDate>
<description><![CDATA[
<P><A>人那个多得，又热又闷</A></P>]]></description>
</item>
</channel>
</rss>