<?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: 650 行的 constructor</title>
	<atom:link href="http://www.jeffhung.net/blog/articles/jeffhung/1838/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/</link>
	<description>(My smile insists of having nose. :-)</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:16:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arlo</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/comment-page-1/#comment-138186</link>
		<dc:creator>Arlo</dc:creator>
		<pubDate>Sat, 18 Apr 2009 10:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/?p=1838#comment-138186</guid>
		<description>說到C++, 雖然我完全不是慣C魔人, 不過這陣子trace C++ code有一些感想, 1. blackbox有時是好事,但是對要trace別人的code的人而言就不見得了.. 2. 沒有IDE輔助, 很容易在一堆繼承與多型裡迷路..@_@,C++和Java都有同樣的問題..以兩個比較大型的project為例, 1.mozilla 2.openoffice(ooxx的openoffice)</description>
		<content:encoded><![CDATA[<p>說到C++, 雖然我完全不是慣C魔人, 不過這陣子trace C++ code有一些感想, 1. blackbox有時是好事,但是對要trace別人的code的人而言就不見得了.. 2. 沒有IDE輔助, 很容易在一堆繼承與多型裡迷路..@_@,C++和Java都有同樣的問題..以兩個比較大型的project為例, 1.mozilla 2.openoffice(ooxx的openoffice)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/comment-page-1/#comment-138152</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Sat, 18 Apr 2009 01:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/?p=1838#comment-138152</guid>
		<description>&lt;p&gt;Arlo,&lt;/p&gt;
&lt;p&gt;主要是因為，constructor 與 destructor 有一些一般 member function 所沒有的限制，所以基本上我會盡量避免與 member function 有所交集。av 講得「拆成小 class」會是比較好得作法。&lt;/p&gt;
&lt;p&gt;什麼限制呢？constructor 若中途失敗，destructor 不會被呼叫，所以 constructor 自己要把 cleanup 做完。而 destructor 則是最好不要 throw。&lt;/p&gt;
&lt;p&gt;jeffhung&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Arlo,</p>
<p>主要是因為，constructor 與 destructor 有一些一般 member function 所沒有的限制，所以基本上我會盡量避免與 member function 有所交集。av 講得「拆成小 class」會是比較好得作法。</p>
<p>什麼限制呢？constructor 若中途失敗，destructor 不會被呼叫，所以 constructor 自己要把 cleanup 做完。而 destructor 則是最好不要 throw。</p>
<p>jeffhung</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arlo</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/comment-page-1/#comment-138123</link>
		<dc:creator>Arlo</dc:creator>
		<pubDate>Fri, 17 Apr 2009 17:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/?p=1838#comment-138123</guid>
		<description>一個member function只要超過200行我就會想拆..主要是現今的IDE 的symbol/function list實在很方便.</description>
		<content:encoded><![CDATA[<p>一個member function只要超過200行我就會想拆..主要是現今的IDE 的symbol/function list實在很方便.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffhung</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/comment-page-1/#comment-137916</link>
		<dc:creator>jeffhung</dc:creator>
		<pubDate>Wed, 15 Apr 2009 01:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/?p=1838#comment-137916</guid>
		<description>&lt;p&gt;av,&lt;/p&gt;
&lt;p&gt;才 21 個 member variables，很多是 bool，還沒被我用 bit flags 整合。平均每個 member variable 要設定其值，要花上 20 行左右，再加上詳盡的註解，就達 650 行了。&lt;/p&gt;
&lt;p&gt;jeffhung&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>av,</p>
<p>才 21 個 member variables，很多是 bool，還沒被我用 bit flags 整合。平均每個 member variable 要設定其值，要花上 20 行左右，再加上詳盡的註解，就達 650 行了。</p>
<p>jeffhung</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: av</title>
		<link>http://www.jeffhung.net/blog/articles/jeffhung/1838/comment-page-1/#comment-137881</link>
		<dc:creator>av</dc:creator>
		<pubDate>Tue, 14 Apr 2009 17:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeffhung.net/blog/?p=1838#comment-137881</guid>
		<description>650 行的 constructor? 該不會有上百個 member variable 吧? 這個 class 應該要拆小才對....</description>
		<content:encoded><![CDATA[<p>650 行的 constructor? 該不會有上百個 member variable 吧? 這個 class 應該要拆小才對....</p>
]]></content:encoded>
	</item>
</channel>
</rss>
