<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 《冒号课堂》目录</title>
	<atom:link href="http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/</link>
	<description>自然、人类、机器</description>
	<lastBuildDate>Tue, 20 Jul 2010 10:33:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 雨碎江南</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-224</link>
		<dc:creator>雨碎江南</dc:creator>
		<pubDate>Wed, 02 Jun 2010 12:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-224</guid>
		<description>呵呵,买了您的书,还堆着没看呢.....
估计假期会有时间.</description>
		<content:encoded><![CDATA[<p>呵呵,买了您的书,还堆着没看呢&#8230;..<br />
估计假期会有时间.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-134</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 13 Dec 2009 00:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-134</guid>
		<description>虽然内容很多了解，但是写的很不错啊
我昨晚做梦都梦见书里的内容了，哈哈
梦见老帽了</description>
		<content:encoded><![CDATA[<p>虽然内容很多了解，但是写的很不错啊<br />
我昨晚做梦都梦见书里的内容了，哈哈<br />
梦见老帽了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-110</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Mon, 23 Nov 2009 12:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-110</guid>
		<description>好的，谢谢！</description>
		<content:encoded><![CDATA[<p>好的，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 郑晖</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-109</link>
		<dc:creator>郑晖</dc:creator>
		<pubDate>Mon, 23 Nov 2009 11:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-109</guid>
		<description>Design by Contract的关键是在系统中建立一种信用机制。如果这种机制得以全面使用，是比抛异常这种defensive programming更简洁、更优雅也更高效的选择。但如果系统中对DbC和defensive programming的使用没有规范化，或者包含来自不同开发组的代码，则为了保证代码的健壮性，通常会采用异常机制。一个比较现实的建议是，在public类的public方法最好包含防御性编码，因为它会有的来自外部的客户，其他的在可控制的范围内尽可能地采用DbC。

另：下次提问最好在“《冒号课堂》意见收集 ”下回复。谢谢！</description>
		<content:encoded><![CDATA[<p>Design by Contract的关键是在系统中建立一种信用机制。如果这种机制得以全面使用，是比抛异常这种defensive programming更简洁、更优雅也更高效的选择。但如果系统中对DbC和defensive programming的使用没有规范化，或者包含来自不同开发组的代码，则为了保证代码的健壮性，通常会采用异常机制。一个比较现实的建议是，在public类的public方法最好包含防御性编码，因为它会有的来自外部的客户，其他的在可控制的范围内尽可能地采用DbC。</p>
<p>另：下次提问最好在“《冒号课堂》意见收集 ”下回复。谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-108</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Mon, 23 Nov 2009 09:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-108</guid>
		<description>想请教一下Design by Contract和异常机制之间的关系。例如，下面的dictionary类的put方法把count &lt;= capability作为precondition；与此相对的是不把它作为precondition，而是抛异常。这两种设计之间应如何选择？楼主认为哪种更好？

	put (x: ELEMENT; key: STRING) is
			-- Insert x so that it will be retrievable through key.
		require
			count &lt;= capacity
			not key.empty
		do
			... Some insertion algorithm ...
		ensure
			has (x)
			item (key) = x 
			count = old count + 1
		end</description>
		<content:encoded><![CDATA[<p>想请教一下Design by Contract和异常机制之间的关系。例如，下面的dictionary类的put方法把count &lt;= capability作为precondition；与此相对的是不把它作为precondition，而是抛异常。这两种设计之间应如何选择？楼主认为哪种更好？</p>
<p>	put (x: ELEMENT; key: STRING) is<br />
			&#8211; Insert x so that it will be retrievable through key.<br />
		require<br />
			count &lt;= capacity<br />
			not key.empty<br />
		do<br />
			&#8230; Some insertion algorithm &#8230;<br />
		ensure<br />
			has (x)<br />
			item (key) = x<br />
			count = old count + 1<br />
		end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-96</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Tue, 17 Nov 2009 05:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-96</guid>
		<description>继承这一章讲到C++ public, protected, private继承的区别，以前学的时候都只从语法角度知道差别，没有去体会语义差别。其实，只有真正理解了语义，才能恰当地使用。</description>
		<content:encoded><![CDATA[<p>继承这一章讲到C++ public, protected, private继承的区别，以前学的时候都只从语法角度知道差别，没有去体会语义差别。其实，只有真正理解了语义，才能恰当地使用。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaven276</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-89</link>
		<dc:creator>kaven276</dc:creator>
		<pubDate>Tue, 10 Nov 2009 10:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-89</guid>
		<description>真的很不错，我用很短的时间把软件知识都重温并深刻理解了一遍。真的很棒。</description>
		<content:encoded><![CDATA[<p>真的很不错，我用很短的时间把软件知识都重温并深刻理解了一遍。真的很棒。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-84</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Sat, 07 Nov 2009 01:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-84</guid>
		<description>第7，8课很多内容是平时学习OO时感觉不起眼的内容，读了这本书以后才发现自己以前对ADT、封装、访问控制根本不了解。这些东西对做设计是非常重要的，因为只有明白道理才能做出恰当的设计。</description>
		<content:encoded><![CDATA[<p>第7，8课很多内容是平时学习OO时感觉不起眼的内容，读了这本书以后才发现自己以前对ADT、封装、访问控制根本不了解。这些东西对做设计是非常重要的，因为只有明白道理才能做出恰当的设计。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 郑晖</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-78</link>
		<dc:creator>郑晖</dc:creator>
		<pubDate>Thu, 05 Nov 2009 01:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-78</guid>
		<description>书中若有解释不周之处，敬请指出。</description>
		<content:encoded><![CDATA[<p>书中若有解释不周之处，敬请指出。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-77</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Thu, 05 Nov 2009 01:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-77</guid>
		<description>昨天当当订购的书到了。在看第七课，以前一直没搞清楚ADT是什么。</description>
		<content:encoded><![CDATA[<p>昨天当当订购的书到了。在看第七课，以前一直没搞清楚ADT是什么。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 郑晖</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-51</link>
		<dc:creator>郑晖</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-51</guid>
		<description>估计在十天之内上市，届时我会第一时间在博客上通知的。谢谢您的关注！</description>
		<content:encoded><![CDATA[<p>估计在十天之内上市，届时我会第一时间在博客上通知的。谢谢您的关注！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yxd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-50</link>
		<dc:creator>yxd</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-50</guid>
		<description>楼主的大作什么时候出版呀，期待了很久！</description>
		<content:encoded><![CDATA[<p>楼主的大作什么时候出版呀，期待了很久！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sswv</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-32</link>
		<dc:creator>sswv</dc:creator>
		<pubDate>Thu, 10 Sep 2009 02:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-32</guid>
		<description>昨天听说的，今天来学习一下。</description>
		<content:encoded><![CDATA[<p>昨天听说的，今天来学习一下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Genes</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-27</link>
		<dc:creator>Genes</dc:creator>
		<pubDate>Sun, 30 Aug 2009 10:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-27</guid>
		<description>编程之道，可以在这里欣赏到。一定看看软件无形，变成有道。</description>
		<content:encoded><![CDATA[<p>编程之道，可以在这里欣赏到。一定看看软件无形，变成有道。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MK</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-26</link>
		<dc:creator>MK</dc:creator>
		<pubDate>Thu, 27 Aug 2009 16:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-26</guid>
		<description>太强了，对编程的理解已经炉火纯青了，佩服佩服</description>
		<content:encoded><![CDATA[<p>太强了，对编程的理解已经炉火纯青了，佩服佩服</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 云端孤鹜</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-21</link>
		<dc:creator>云端孤鹜</dc:creator>
		<pubDate>Wed, 26 Aug 2009 06:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-21</guid>
		<description>受益匪浅，期待下篇！</description>
		<content:encoded><![CDATA[<p>受益匪浅，期待下篇！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 郑晖</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-16</link>
		<dc:creator>郑晖</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-16</guid>
		<description>谢谢，欢迎有空多来作客！</description>
		<content:encoded><![CDATA[<p>谢谢，欢迎有空多来作客！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-14</link>
		<dc:creator>Todd</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:24:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-14</guid>
		<description>乔迁大吉:)</description>
		<content:encoded><![CDATA[<p>乔迁大吉:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 郑晖</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-10</link>
		<dc:creator>郑晖</dc:creator>
		<pubDate>Sun, 23 Aug 2009 03:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-10</guid>
		<description>多谢鼓励！</description>
		<content:encoded><![CDATA[<p>多谢鼓励！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Solrex</title>
		<link>http://blog.zhenghui.org/2009/08/21/contents-of-colonclass/comment-page-1/#comment-6</link>
		<dc:creator>Solrex</dc:creator>
		<pubDate>Sun, 23 Aug 2009 02:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zhenghui.org/?p=4#comment-6</guid>
		<description>最近一直在读冒号课堂,写的很生动,加油!</description>
		<content:encoded><![CDATA[<p>最近一直在读冒号课堂,写的很生动,加油!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
