<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>I&#039;m CaLendarW Blog &#187; coding snippet</title>
	<atom:link href="http://wongkalun.idv.hk/category/computer-science/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://wongkalun.idv.hk</link>
	<description>任何時間，都要用內心既一點光，照亮世界</description>
	<lastBuildDate>Fri, 20 Apr 2012 18:21:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>yield keyword</title>
		<link>http://wongkalun.idv.hk/2009/10/29/yield-keyword/</link>
		<comments>http://wongkalun.idv.hk/2009/10/29/yield-keyword/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:18:59 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=627</guid>
		<description><![CDATA[近期因為睇 ASP.net MVC 既 example, 中途見到 yield keyword 既 usage, 感覺上幾好用, 以學多個 keyword 既原則黎講, 我當然會在 project 中試用, 當中既 validation 用法我覺得幾好. 但當我想在 project 度用果時, 開始感覺到麻煩, 因為本身個 project 係要在 .net 2.0 既環境下運作, 而 IEnumerable.Count 係未有支援, 而且無 extension methods 既支援, 所以要另外寫個 class 黎 handle 呢樣野都幾麻煩, 因此我都無乜 idea 在其他方面可以實際上使用得適當&#8230;&#8230;]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/10/29/yield-keyword/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List.Sort &#8211; Lambda Expression Way</title>
		<link>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/</link>
		<comments>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:52:40 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=681</guid>
		<description><![CDATA[呢期研究既 delegation, 其中一個例子係 Lambda 在 List.Sort 既使用. 有了這樣既 syntax, 寫 sorting 易左同快捷左很多~~]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/08/18/list-sort-lambda-expression-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# as operator</title>
		<link>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/</link>
		<comments>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 15:44:16 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=665</guid>
		<description><![CDATA[as operator 係用黎做 casting 的 如果用 boxing 黎轉 type 既話, 錯 type 的話就會 throw InvalidCastException, 但如果用 as operator 就唔會 throw InvalidCastException, 而 value 就會係 null]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/08/04/csharp-as-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# ?? null coalescing operator</title>
		<link>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/</link>
		<comments>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:29:44 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=654</guid>
		<description><![CDATA[null coalescing operator &#8211; ?? 係用黎決定參數是否 null 既算式, 自 C# 2.0 開始支援, 作為 null 既使用簡化. 長度上係短左, 識既人會易睇左. 另一方面, 通常既用法會同 Nullable 一齊用, 但自己平時無乜用開 Nullable, 所以對此無乜 comment (知道有呢樣野, 但唔知咩情況用先叫做適合, 所以都未用過.]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/07/23/c-null-coalescing-operator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timer for Performance Testing</title>
		<link>http://wongkalun.idv.hk/2009/05/13/timer-for-performance-testing/</link>
		<comments>http://wongkalun.idv.hk/2009/05/13/timer-for-performance-testing/#comments</comments>
		<pubDate>Tue, 12 May 2009 16:07:18 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[nunit]]></category>
		<category><![CDATA[test-driven]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=532</guid>
		<description><![CDATA[呢排重溫緊 Pragmatic Unit Testing in C# with Nunit, 開始試緊寫有關 Performance 既 Test Case, 書中有一段有關 Performance 既 Code: 段 code 係一個幾好既 example 去講點 Test Performance, 但當真係要試果陣, 就發現左樣野, 就係我搵唔到 Code 中既 Timer Class, 係我在 System 入面既幾個 namespace 中, 都搵唔到啱用既 Timer, 因為 System namespace 入面既 Timer 大部份都係用黎 Trigger Timeout Event, 而當中既 Stop method 都只係用黎停止 Event Trigger, 而沒有任何計時結果做到出黎, 所以經過一輪網上既搜尋之後, [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/05/13/timer-for-performance-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Statement with Other Table</title>
		<link>http://wongkalun.idv.hk/2009/04/23/update-statement-with-other-table/</link>
		<comments>http://wongkalun.idv.hk/2009/04/23/update-statement-with-other-table/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 15:13:54 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=472</guid>
		<description><![CDATA[呢排為設置 Testing 場而預備緊 d SQL statement, 有部份 Data 得 detail table, 但使用時要整返個 master 比佢, 所以就要使用 update statement 黎 link 返唔同 table 既 key, 以下係一個例子:]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/04/23/update-statement-with-other-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding Exception</title>
		<link>http://wongkalun.idv.hk/2009/03/29/understanding-exception/</link>
		<comments>http://wongkalun.idv.hk/2009/03/29/understanding-exception/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 04:15:46 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[diary]]></category>
		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=401</guid>
		<description><![CDATA[Exception &#8211; 從來都被初哥覺得係個麻煩既來源, 但其實佢只係一個提醒工具, 話比大家知那裡有問題. 好多課程, 以及書本都有教點處理 Exception, 但如何正確使用 Exception 就好似得 Pragmatic Programmer 一書內有提及. 通常我使用 Exception 既地方會有以下幾個, 作用係提醒返 d 唔正常既動作, 因為唔 throw 既話, 使用者 (包括自己) 都會唔知或者唔記得: 1. Design By Contract 主要用 Exception 黎 validate 所有 input 或 pre-condition, 令佢有個 Valid State 比佢 perform action 2. Supporting of Share Module 3. Supporting on different framework 4. [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/03/29/understanding-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# 3.0 初試!!</title>
		<link>http://wongkalun.idv.hk/2009/03/13/c-30-%e5%88%9d%e8%a9%a6/</link>
		<comments>http://wongkalun.idv.hk/2009/03/13/c-30-%e5%88%9d%e8%a9%a6/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 10:32:52 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=396</guid>
		<description><![CDATA[用左 VS 2008 其實都幾個月, 但因公司目標係 .net 2.0 既關係, 技術始終都仲停留緊係 2.0 度, 近日開始習慣緊 C# 3.0 既 syntax, 有幾個新 feature 係 2.0 platform 都幾好用. Object initializers 呢個係一個新既 contractor syntax, 可以好方便咁創建同設定 Value. 但如果個 Properties 係 private set; 既話就用唔到啦!! Lambda expressions Lambda 好好用!! 簡單, 快捷!! Automatic properties 呢個可以簡化到部份 properties, 但如果有 business logic 既話就唔係太啱用]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/03/13/c-30-%e5%88%9d%e8%a9%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Dock</title>
		<link>http://wongkalun.idv.hk/2009/02/04/working-with-dock/</link>
		<comments>http://wongkalun.idv.hk/2009/02/04/working-with-dock/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 10:16:09 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=382</guid>
		<description><![CDATA[近半年開始著重地寫 Windows Application (以前以 web 同 DLL 為主), 寫左咁耐都無用過 Control.Dock 呢個屬性, 今日第一次用, 就出左好多次序上既問題, 不過在網上找到以下既解決方案, 當解決了次序既問題後, Dock 其實係幾好用!!~~ 轉載自: 藍色小鋪]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2009/02/04/working-with-dock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implement State of View</title>
		<link>http://wongkalun.idv.hk/2008/08/03/implement-state-of-view/</link>
		<comments>http://wongkalun.idv.hk/2008/08/03/implement-state-of-view/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 10:39:56 +0000</pubDate>
		<dc:creator>calendarw</dc:creator>
				<category><![CDATA[coding snippet]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://wongkalun.idv.hk/?p=124</guid>
		<description><![CDATA[平時寫介面(GUI), 通常會寫一個 method 叫 StateChange 黎處理所有介面上既所有 visible 同 enable 既動作. 而自己會因介面既設計而定義一個 private enum 既 State, 所有 state 由一個 method 做晒. 而我自己寫過既 State 都有幾隻: 同一版有個所有 Item 既 List 而 Edit box 得 Add 同 Update 一版得主要係用黎 Insert 既: 同埋得睇同改既: 仲有好多其他既 State 寫過, 不過都太過多同太專門, 所以應該係按照實際用途而加. 網上曾經見過有人用 State object 同 State Pattern 黎做, 對我而言好似用係 GUI 方面未必真係有咁既需要, 但對一個 domain [...]]]></description>
		<wfw:commentRss>http://wongkalun.idv.hk/2008/08/03/implement-state-of-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

