<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>rauchy's Blog</title>
	<link>http://www.rauchy.net/blog</link>
	<description>Desperately Trying to Decouple</description>
	<pubDate>Wed, 30 Dec 2009 18:03:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Special Case It, Part Two</title>
		<link>http://www.rauchy.net/blog/2009/12/special-case-it-part-two/</link>
		<comments>http://www.rauchy.net/blog/2009/12/special-case-it-part-two/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 17:51:26 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[C#]]></category>

		<category><![CDATA[Coding Standards]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[Patterns]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2009/12/special-case-it-part-two/</guid>
		<description><![CDATA[Following my post on the Special Case pattern, I just wanted to give a few more examples in which the pattern proves to be really helpful. In the previous post, we talked about using the Special Case pattern when returning collections, but you can use it in other places as well.
Subclassing
Suppose we have a cached collection of User objects, [...]]]></description>
			<content:encoded><![CDATA[<p align="left">Following my post on the <a href="http://www.rauchy.net/blog/2009/12/special-case-it/">Special Case pattern</a>, I just wanted to give a few more examples in which the pattern proves to be really helpful. In the previous post, we talked about using the Special Case pattern when returning collections, but you can use it in other places as well.</p>
<h2>Subclassing</h2>
<p>Suppose we have a cached collection of <em>User</em> objects, and we want to fetch a specific User and save it to the database.</p>
<p><strong>User user = cache.Get(&#8221;John&#8221;);<br />
if (user != null)<br />
{<br />
     user.Save();<br />
} </strong></p>
<p>If we subclass User with a class called <em>MissingUser</em>, and have our cache object return it when it can&#8217;t find a user, we can reduce our calling code to:</p>
<p><strong>User user = cache.Get(&#8221;John&#8221;);<br />
user.Save(); </strong></p>
<p>MissingUser.Save() overrides User.Save() and does nothing.</p>
<p><strong>Side note</strong>: we could definitely go with checking cache.Contains(&#8221;John&#8221;), and acting on the result, but I think this is too much detail for this level of abstraction, and may be violating <a href="http://www.pragprog.com/articles/tell-dont-ask">Tell, Don&#8217;t Ask</a>.</p>
<h2>Instantiation</h2>
<p>Suppose we want to display a User&#8217;s profile. Our User class has a string called <em>Name</em> and a bitmap called <em>Picture.</em></p>
<p><strong>User user = profiles.Get(&#8221;Mark&#8221;);<br />
if (user != null)<br />
{<br />
     this.Name = user.Name; // Binding is for the weak.<br />
     this.Picture = user.Picture;<br />
}</strong></p>
<p>When a User is not found in the profiles repository, we could make it return an instance of the regular User class, where User.Name = &#8220;Not Found&#8221;, and Picture is something like</p>
<p style="text-align: center"><strong><img border="0" width="128" src="http://www.hidenseek.eu/e107_images/no_avatar.jpg" alt="Missing User" height="128" /></strong></p>
<p>This way, we can just write:</p>
<p><strong>User user = profiles.Get(&#8221;Mark&#8221;);<br />
this.Name = user.Name;<br />
this.Picture = user.Picture;</strong></p>
<p>and a profile will always be displayed.</p>
<h2>Conditioning on Instantiation</h2>
<p>What if we wanted to check if a User exists in a managers repository, and only if it is not found, fetch it from a clerks repository? One might be tempted to write something like:</p>
<p><strong>User user = managers.Get(&#8221;Ahmed&#8221;);</strong><br />
<strong>if (user != null)</strong><br />
<strong>{</strong><br />
<strong>     // Ahmed is a manager.</strong><br />
<strong>     Display(user);<br />
}</strong><br />
<strong>else</strong><br />
<strong>{</strong><br />
<strong>     // Ahmed must be a clerk.</strong><br />
<strong>     user = clerks.Get(&#8221;Ahmed&#8221;);</strong><br />
<strong>     Display(user);<br />
}</strong></p>
<p>In the previous examples, we avoided the conditional (null check) by using Special Case. If you look at the requirement for this example, you&#8217;ll see that the conditional is built into it, and there is no way to get around it.</p>
<p>But if we use the same technique we used in the second example, we could create an instance of User, that has a boolean property called <em>Exists, </em>which will be populated according to the result. This way, we could express our condition much better:</p>
<p><strong>User user = managers.Get(&#8221;Ahmed&#8221;);<br />
if (user.Exists)</strong><br />
<strong>{</strong><br />
<strong>     // Ahmed is a manager.</strong><br />
<strong>     Display(user);<br />
}</strong><br />
<strong>else</strong><br />
<strong>{</strong><br />
<strong>     // Ahmed must be a clerk.</strong><br />
<strong>     user = clerks.Get(&#8221;Ahmed&#8221;);</strong><br />
<strong>     Display(user);<br />
}</strong></p>
<p>No code saved here, but our intention is much clearer this way.</p>
<p>What the hell is a &#8220;if (user != null)&#8221;? English, people.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2009%2f12%2fspecial-case-it-part-two%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2009%2f12%2fspecial-case-it-part-two%2f&#038;bgcolor=CC0033" border="0" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2009/12/special-case-it-part-two/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Special Case It</title>
		<link>http://www.rauchy.net/blog/2009/12/special-case-it/</link>
		<comments>http://www.rauchy.net/blog/2009/12/special-case-it/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 15:27:46 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[C#]]></category>

		<category><![CDATA[Coding Standards]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[Patterns]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2009/12/special-case-it/</guid>
		<description><![CDATA[Guys, will you knock it off with returning nulls from methods? You should return Special Cases, not nulls! nulls tend to bypass any polymorphic structure, and cause code to be cluttered with null checks. For example:
public IEnumerable&#60;Picture&#62; GetAllPictures()
{
  if ( .. there are pictures .. )
  {
    return pictures;
  }
  else
  {
    return null;
  }
}
Oh [...]]]></description>
			<content:encoded><![CDATA[<p>Guys, will you knock it off with returning nulls from methods? You should return <a href="http://martinfowler.com/eaaCatalog/specialCase.html">Special Cases</a>, not nulls! nulls tend to bypass any polymorphic structure, and cause code to be cluttered with null checks. For example:</p>
<p><strong>public IEnumerable&lt;Picture&gt; GetAllPictures()<br />
{<br />
  if ( .. there are pictures .. )<br />
  {<br />
    return pictures;<br />
  }<br />
  else<br />
  {<br />
    return null;<br />
  }<br />
}</strong></p>
<p>Oh boy, users of this method would have to check for nulls every time before they operate on it: (if they don&#8217;t they might get a <em>NullReferenceException, </em>which s-uhhh-cks)</p>
<p><strong>var pictures = GetAllPictures();<br />
if (pictures != null)<br />
{<br />
  foreach (var picture in pictures)<br />
  {<br />
    &#8230;<br />
  }<br />
}</strong></p>
<p>Isn&#8217;t that null check a big distraction from the actual logic? If you use a Special Case for that enumerable and return <em>Enumerable&lt;Picture&gt;.Empty()</em>, the calling code could be reduced to:</p>
<p><strong>var pictures = GetAllPictures();<br />
foreach (var picture in pictures)<br />
{<br />
  &#8230;<br />
}</strong></p>
<p>Much better, no?</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2009%2f12%2fspecial-case-it%2f"><img border="0" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2009%2f12%2fspecial-case-it%2f&amp;bgcolor=CC0033" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2009/12/special-case-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unit Tests Are Part of Your Job</title>
		<link>http://www.rauchy.net/blog/2009/12/unit-tests-are-part-of-your-job/</link>
		<comments>http://www.rauchy.net/blog/2009/12/unit-tests-are-part-of-your-job/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 15:36:07 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2009/12/unit-tests-are-part-of-your-job/</guid>
		<description><![CDATA[I just hate it when people say &#8220;I&#8217;m working on unit tests for feature X&#8221; on daily scrum meetings.
When you get assigned to implement feature X, unit tests are just another part of that assignment. Just like planning, compiling, banging your head on the keyboard or writing documentation.
Sure, I get it, you want to show that [...]]]></description>
			<content:encoded><![CDATA[<p>I just hate it when people say &#8220;I&#8217;m working on unit tests for feature X&#8221; on daily scrum meetings.</p>
<p>When you get assigned to implement feature X, unit tests are just another part of that assignment. Just like planning, compiling, banging your head on the keyboard or writing documentation.</p>
<p>Sure, I get it, you want to show that you are very trendy and professional, especially since the project manager has asked everyone to unit test. But if you want to be a real professional, just silently work on unit tests and say &#8220;I&#8217;m working on feature X&#8221;.</p>
<p>And write those unit tests before code. And don&#8217;t drink water from a puddle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2009/12/unit-tests-are-part-of-your-job/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Compound Constraints in NUnit</title>
		<link>http://www.rauchy.net/blog/2009/09/compound-constraints-in-nunit/</link>
		<comments>http://www.rauchy.net/blog/2009/09/compound-constraints-in-nunit/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 10:29:30 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[TDD]]></category>

		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2009/09/compound-constraints-in-nunit/</guid>
		<description><![CDATA[I just found out that you can create compound constraints in NUnit (starting in v2.4). This means that you can logically group constraints.
For example, I am currently testing a custom IList&#60;T&#62; implementation, and in a specific test case, I want to make sure a specific entry exists instead of another. Before compound constraints, I would [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out that you can create compound constraints in NUnit (starting in v2.4). This means that you can logically group constraints.</p>
<p>For example, I am currently testing a custom IList&lt;T&gt; implementation, and in a specific test case, I want to make sure a specific entry exists instead of another. Before compound constraints, I would have written these 2 asserts:</p>
<p><strong>Assert.That(this.subject, Has.Member(&#8221;rauchy&#8221;));<br />
Assert.That(this.subject, Has.No.Member(&#8221;Omer&#8221;));</strong></p>
<p>My problem with this code is that these two asserts represent a single fact - I want to make sure that rauchy makes it to the list, and not Omer. One might interpert them as two independent facts. With compound constraints, I can just write:</p>
<p><strong>Assert.That(this.subject, Has.Member(&#8221;rauchy&#8221;) &amp; Has.No.Member(&#8221;Omer&#8221;));</strong></p>
<p>This way, you cannot think of this as two independent facts. Also, this helps follow the one-assert-per-test rule.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2009/09/compound-constraints-in-nunit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Naming Conventions: Are They Really That Important?</title>
		<link>http://www.rauchy.net/blog/2008/08/naming-conventions-are-they-really-that-important/</link>
		<comments>http://www.rauchy.net/blog/2008/08/naming-conventions-are-they-really-that-important/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 12:19:22 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[C#]]></category>

		<category><![CDATA[Coding Standards]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[altnetisrael]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/08/naming-conventions-are-they-really-that-important/</guid>
		<description><![CDATA[A hallway talk at the Alt.NET Israel Unconference got me thinking about coding standards in general, and naming conventions in particular.
I&#8217;ve seen dozens of holy wars regarding the subject of naming conventions - when a project starts, when a new team member comes along, when the team leader is replaced etc.
I used to think that [...]]]></description>
			<content:encoded><![CDATA[<p>A hallway talk at the <a href="http://altdotnet.org/events/israel">Alt.NET Israel Unconference</a> got me thinking about coding standards in general, and naming conventions in particular.</p>
<p>I&#8217;ve seen dozens of holy wars regarding the subject of naming conventions - when a project starts, when a new team member comes along, when the team leader is replaced etc.</p>
<p>I used to think that a project should have a single naming convention, and everyone should follow it. Now, I&#8217;m not so sure any more. I mean, what is <strong>really</strong> so important about naming conventions? What makes a project with a unified naming convention better than a project without one?</p>
<h3>Unity</h3>
<p>The first argument for naming conventions is always unity. You want all your data members to look the same.</p>
<p>But, think of it, what is really that important about unity? What business value do you get from it? Does it cut down development time? Does it improve performance?</p>
<p>IMO, if one developer wants his field to be called &#8220;_identifier&#8221;, another wants &#8220;m_identifier&#8221; and the other wants &#8220;nIdentifier&#8221;, just let them! No one ever died from Hungarian notation or a &#8220;m_&#8221; prefix, I believe.</p>
<h3>Readability</h3>
<p>For those who still believe in Hungarian notation (or any of its siblings), readability seems to be a great argument for naming conventions. </p>
<p>However, Hungarian notation might have been a good argument a decade ago. Today, all IDE&#8217;s provide great intellisense, and one could determine the type of a member in a second by hovering on it.</p>
<h3>Scope</h3>
<p>Determining the scope of a variable (method or class) is important, but can also be easily discovered by intellisense.</p>
<h3>Focus on What&#8217;s Important</h3>
<p>I&#8217;m not trying to say you shouldn&#8217;t have a naming convention in your project. I&#8217;m just trying to say, don&#8217;t let it bother you so much.</p>
<p>Set up a naming convention at the beginning of the project, have your team members agree on it, but don&#8217;t hunt down any exception and have it fixed.</p>
<p>Write a unit test or get a cup of coffee instead.</p>
<p>Do you think naming conventions are important? Where would you draw the line?</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2008%2f08%2fnaming-conventions-are-they-really-that-important%2f"><img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2008%2f08%2fnaming-conventions-are-they-really-that-important%2f&amp;bgcolor=FF0000&amp;cfgcolor=FFFFFF&amp;cbgcolor=993300" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/08/naming-conventions-are-they-really-that-important/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Heading Out to AltNetConf Israel</title>
		<link>http://www.rauchy.net/blog/2008/08/heading-out-to-altnetconf-israel/</link>
		<comments>http://www.rauchy.net/blog/2008/08/heading-out-to-altnetconf-israel/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:46:11 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[alt-net-israel]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/08/heading-out-to-altnetconf-israel/</guid>
		<description><![CDATA[I&#8217;ll be heading out to the first Alt.NET conference in Israel in an hour or so, I&#8217;m really excited about the Alt.NET movement forming up in Israel.
I hope to learn some stuff I just never get around to, such as:

Domain Driven Design,
Behavior Driven Development,
Domain Specific Languages.

I don&#8217;t think I&#8217;ll be able to share any knowledge, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be heading out to the first Alt.NET conference in Israel in an hour or so, I&#8217;m really excited about the Alt.NET movement forming up in Israel.</p>
<p>I hope to learn some stuff I just never get around to, such as:</p>
<ul>
<li>Domain Driven Design,</li>
<li>Behavior Driven Development,</li>
<li>Domain Specific Languages.</li>
</ul>
<p>I don&#8217;t think I&#8217;ll be able to share any knowledge, since I&#8217;m positive that I will be stunned by the high-level knowledge of the people there.</p>
<p>So I&#8217;m off to stare and drool. See you there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/08/heading-out-to-altnetconf-israel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Finally, a Good Reason for an Extension Method</title>
		<link>http://www.rauchy.net/blog/2008/07/finally-a-good-reason-for-an-extension-method/</link>
		<comments>http://www.rauchy.net/blog/2008/07/finally-a-good-reason-for-an-extension-method/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 07:05:18 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[C#]]></category>

		<category><![CDATA[Extensibility]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/07/finally-a-good-reason-for-an-extension-method/</guid>
		<description><![CDATA[Several months have passed since people starting using C# 3.0 out there. I, however, was busy with linear algebra, discrete math and such at that time.
I did, however, try to keep up and see what&#8217;s the fuss about extension methods, but I never got it. I mean, this is anti-encapsulation at it best - break [...]]]></description>
			<content:encoded><![CDATA[<p>Several months have passed since people starting using C# 3.0 out there. I, however, was busy with linear algebra, discrete math and such at that time.</p>
<p>I did, however, try to keep up and see what&#8217;s the fuss about extension methods, but I never got it. I mean, this is anti-encapsulation at it best - break into any type, do whatever you feel like. Total chaos.</p>
<p>So I gave it some time. I didn&#8217;t force it into any of my projects until the time was right. Then I finally got it - extension methods are ideal for little pieces of code which you <em>need</em>, but creating a utility class for them feels wrong.</p>
<p>For example, I was implementing a <a href="http://www.rauchy.net/regionerate/blog/2008/07/advanced-sorting.html">new feature</a> for <a href="http://www.rauchy.net/regionerate/">Regionerate</a> a couple of days ago in which I had to sort a list, split it into distinct values and recursively sort it again.</p>
<p>Its a reflection-based sort and it has quite a bit of logic in it, so it had a class &amp; unit tests just for it. I had to take care of the splitting thingy, but it felt wrong to add it as a method in the sort class, as it operates on lists. It really <em>feels</em> like a method that should run on IList&lt;T&gt;.</p>
<p>Subclassing List&lt;T&gt; for the job feels wrong - c&#8217;mon, how would you pitch such a class? &#8220;It&#8217;s a list that you can split!&#8221;. Unpersuasive.</p>
<p>That&#8217;s how I got it: If IList&lt;T&gt; was built especially for Regionerate, it would have had a reflection-based Split function, but since its not, I should implement it as an extension method.</p>
<p>Took me 2 minutes and works like a charm.</p>
<div class="csharpcode">
<pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">public</span> <span class="kwrd">static</span> IDictionary&lt;<span class="kwrd">object</span>, IList&lt;T&gt;&gt; Slice&lt;T&gt;(</pre>
<pre><span class="lnum">   2:  </span>        <span class="kwrd">this</span> IList&lt;T&gt; list, PropertyInfo propertyInfo)</pre>
<pre class="alt"><span class="lnum">   3:  </span>{</pre>
<pre><span class="lnum">   4:  </span>    IDictionary&lt;<span class="kwrd">object</span>, IList&lt;T&gt;&gt; slices = </pre>
<pre class="alt"><span class="lnum">   5:  </span>        <span class="kwrd">new</span> Dictionary&lt;<span class="kwrd">object</span>, IList&lt;T&gt;&gt;();</pre>
<pre><span class="lnum">   6:  </span>    <span class="kwrd">foreach</span> (T t <span class="kwrd">in</span> list)</pre>
<pre class="alt"><span class="lnum">   7:  </span>    {</pre>
<pre><span class="lnum">   8:  </span>        <span class="rem">// Get the value of propertyInfo.</span></pre>
<pre class="alt"><span class="lnum">   9:  </span>        <span class="kwrd">object</span> <span class="kwrd">value</span> = propertyInfo.GetValue(t, <span class="kwrd">null</span>);</pre>
<pre><span class="lnum">  10:  </span>&nbsp;</pre>
<pre class="alt"><span class="lnum">  11:  </span>        <span class="rem">// Add it to slices.</span></pre>
<pre><span class="lnum">  12:  </span>        <span class="kwrd">if</span> (slices.Keys.Contains(<span class="kwrd">value</span>))</pre>
<pre class="alt"><span class="lnum">  13:  </span>        {</pre>
<pre><span class="lnum">  14:  </span>            <span class="rem">// slices already has a slice for this value.</span></pre>
<pre class="alt"><span class="lnum">  15:  </span>            slices[<span class="kwrd">value</span>].Add(t);</pre>
<pre><span class="lnum">  16:  </span>        }</pre>
<pre class="alt"><span class="lnum">  17:  </span>        <span class="kwrd">else</span></pre>
<pre><span class="lnum">  18:  </span>        {</pre>
<pre class="alt"><span class="lnum">  19:  </span>            <span class="rem">// there is no slice for this value </span></pre>
<pre><span class="lnum">  20:  </span>            <span class="rem">// inside slices, create a new slice.</span></pre>
<pre class="alt"><span class="lnum">  21:  </span>            IList&lt;T&gt; newSlice = <span class="kwrd">new</span> List&lt;T&gt;();</pre>
<pre><span class="lnum">  22:  </span>            newSlice.Add(t);</pre>
<pre class="alt"><span class="lnum">  23:  </span>            slices.Add(<span class="kwrd">value</span>, newSlice);</pre>
<pre><span class="lnum">  24:  </span>        }</pre>
<pre class="alt"><span class="lnum">  25:  </span>    }</pre>
<pre><span class="lnum">  26:  </span>&nbsp;</pre>
<pre class="alt"><span class="lnum">  27:  </span>    <span class="kwrd">return</span> slices;</pre>
<pre><span class="lnum">  28:  </span>}</pre>
</div>
<p>A fully documented, well-aligned version of this extension method is freely available <a href="http://trac2.assembla.com/Regionerate/browser/Domain.Components/Extensions/IListExtensions.cs">here</a>.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2008%2f07%2ffinally-a-good-reason-for-an-extension-method%2f"><img border="0" alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.rauchy.net%2fblog%2f2008%2f07%2ffinally-a-good-reason-for-an-extension-method%2f&amp;bgcolor=CC0033"></a> </p>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/07/finally-a-good-reason-for-an-extension-method/feed/</wfw:commentRss>
		</item>
		<item>
		<title>May 20th, The Twitterless Day</title>
		<link>http://www.rauchy.net/blog/2008/05/may-20th-the-twitterless-day/</link>
		<comments>http://www.rauchy.net/blog/2008/05/may-20th-the-twitterless-day/#comments</comments>
		<pubDate>Tue, 20 May 2008 22:23:01 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/05/may-20th-the-twitterless-day/</guid>
		<description><![CDATA[It&#8217;s been a rough day for us tweeters, May 20th had a longer Twitter downtime period. The bright side is that it helped me understand how pathetic we are. See for yourself.
Note: yes, this post should have been a tweet, but I&#8217;m Twitterless.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a rough day for us tweeters, May 20th had a longer <a href="http://getsatisfaction.com/twitter/topics/may_20_twitter_downtime">Twitter downtime</a> period. The bright side is that it helped me understand how pathetic we are. <a href="http://www.youtube.com/watch?v=YuyYMkxbMRU">See for yourself</a>.</p>
<h6>Note: yes, this post should have been a tweet, but I&#8217;m Twitterless.</h6>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/05/may-20th-the-twitterless-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Krzysztof Cwalina Releases Framework Design Guidelines Digest v2</title>
		<link>http://www.rauchy.net/blog/2008/04/krzysztof-cwalina-releases-framework-design-guidelines-digest-v2/</link>
		<comments>http://www.rauchy.net/blog/2008/04/krzysztof-cwalina-releases-framework-design-guidelines-digest-v2/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 05:31:52 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[Architecture]]></category>

		<category><![CDATA[C#]]></category>

		<category><![CDATA[Design]]></category>

		<category><![CDATA[FxCop]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/04/krzysztof-cwalina-releases-framework-design-guidelines-digest-v2/</guid>
		<description><![CDATA[ Krzysztof Cwalina, author of the book Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries has released a second revision of the Framework Design Guidelines Digest.
I&#8217;ve read Framework Design Guidelines a couple of years back and learned a whole lot from it. It definitely makes it to my top 5. 
However, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rauchy.net/blog/wp-content/uploads/2008/04/fdg.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="60" alt="fdg" src="http://www.rauchy.net/blog/wp-content/uploads/2008/04/fdg-thumb.jpg" width="60" align="right" border="0"> Krzysztof Cwalina</a>, author of the book <a href="http://www.amazon.com/Framework-Design-Guidelines-Conventions-Development/dp/0321246756">Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries</a> has released a second revision of the Framework Design Guidelines Digest.</p>
<p>I&#8217;ve read Framework Design Guidelines a couple of years back and learned a whole lot from it. It definitely makes it to my top 5. </p>
<p>However, I&#8217;ve had problems convincing my staff members to read it, as it contains~400 pages of design tips, which are quite hard to read in succession.</p>
<p>The Framework Design Guidelines Digest narrows the basics down to 9 pages. I recommend everyone to download and read it every once in a while.</p>
<p>Quoting Krzysztof:</p>
<blockquote><p><em>This document is a distillation and a simplification of the most basic guidelines described in detail in a book titled Framework Design Guidelines by Krzysztof Cwalina and Brad Abrams. Framework Design Guidelines were created in the early days of .NET Framework development. They started as a small set of naming and design conventions but have been enhanced, scrutinized, and refined to a point where they are generally considered the canonical way to design frameworks at Microsoft. They carry the experience and cumulative wisdom of thousands of developer hours over several versions of the .NET Framework.</em></p>
</blockquote>
<p>Get it <a href="http://blogs.msdn.com/kcwalina/archive/2008/04/09/FDGDigest.aspx">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/04/krzysztof-cwalina-releases-framework-design-guidelines-digest-v2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SWI: Day II Summary</title>
		<link>http://www.rauchy.net/blog/2008/04/swi-day-ii-summary/</link>
		<comments>http://www.rauchy.net/blog/2008/04/swi-day-ii-summary/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 07:05:10 +0000</pubDate>
		<dc:creator>rauchy</dc:creator>
		
		<category><![CDATA[3DayStartup]]></category>

		<guid isPermaLink="false">http://www.rauchy.net/blog/2008/04/swi-day-ii-summary/</guid>
		<description><![CDATA[Yesterday was pretty great. We are building a web 2.0 app (surprise surprise) for time and service exchange.
We split to several teams - development, marketing, user experience etc&#8217;. Over at the development team we split to front and back end teams.
I wrote a YouTube adapter yesterday for uploading and displaying YouTube videos, hope to post [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was pretty great. We are building a web 2.0 app (surprise surprise) for time and service exchange.</p>
<p>We split to several teams - development, marketing, user experience etc&#8217;. Over at the development team we split to front and back end teams.</p>
<p>I wrote a YouTube adapter yesterday for uploading and displaying YouTube videos, hope to post about it later on.</p>
<p>Looks like I&#8217;ll be doing some NHibernate today.</p>
<p>Can&#8217;t really write too much as I&#8217;m late, again, for day III, but:</p>
<ol>
<li>Some pretty great guys out there, its always nice to reach outside your circle of colleagues.
<li>People are smart.
<li>People are stupid.</li>
</ol>
<p>The only important things I&#8217;ve learned from talking to a nice gentleman from marketing is that if you plan to release a killer app in a domain which has already been harvested, your chance to succeed aren&#8217;t that big. Most successful application we see today recognized an un-harvested domain and conquered it.</p>
<p>Keep <a href="http://www.twitter.com/rauchy">following on Twitter</a>, I&#8217;m off!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rauchy.net/blog/2008/04/swi-day-ii-summary/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
