<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Daniel Wertheim &#187; Clean code</title>
	<atom:link href="http://daniel.wertheim.se/category/architecture-design/clean-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.wertheim.se</link>
	<description>Love what you do - Continue to do it - Be eager to learn more about it.</description>
	<lastBuildDate>Fri, 27 Jan 2012 12:50:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='daniel.wertheim.se' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Daniel Wertheim &#187; Clean code</title>
		<link>http://daniel.wertheim.se</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://daniel.wertheim.se/osd.xml" title="Daniel Wertheim" />
	<atom:link rel='hub' href='http://daniel.wertheim.se/?pushpress=hub'/>
		<item>
		<title>Ensure.That &#8211; a simple guard clause project</title>
		<link>http://daniel.wertheim.se/2011/08/28/ensure-that-a-simple-guard-clause-project/</link>
		<comments>http://daniel.wertheim.se/2011/08/28/ensure-that-a-simple-guard-clause-project/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 07:28:04 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[C# 101]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[guard clause]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1208</guid>
		<description><![CDATA[Yes I know there&#8217;s a bunch of these projects out there already and that there&#8217;s built in support for using code-contracts in .Net, but even so we found a need for a custom API, hence Ensure.That was created. Also, I think Microsoft&#8217;s Code-contracts fails on the part of having to install an add-on to VS2010 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=1208&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2011/08/28/ensure-that-a-simple-guard-clause-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>C#, Clean up your Linq-queries and lambda expressions for Non Linq to objects</title>
		<link>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions-for-non-linq-to-objects/</link>
		<comments>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions-for-non-linq-to-objects/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 20:24:19 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Entity framework]]></category>
		<category><![CDATA[Entity storage]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Code-first]]></category>
		<category><![CDATA[Entity framework 4]]></category>
		<category><![CDATA[lambdas]]></category>
		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=748</guid>
		<description><![CDATA[This is an update to my post &#8220;C#, Clean up your Linq-queries and lambda expressions&#8221;, where I got a comment that it will not work other than against Linq to objects. That is somewhat true. It will work but the query will fetch all posts from the database and then apply the where clause to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=748&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions-for-non-linq-to-objects/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>C#, Clean up your Linq-queries and lambda expressions</title>
		<link>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions/</link>
		<comments>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 09:38:40 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[lambdas]]></category>
		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=713</guid>
		<description><![CDATA[Part 2 &#8211; How to get it to work against non Linq to object sources Last week something caught my eyes. How scattered business logic can become if you let your binary expressions be used &#8220;here and there&#8221; when matching entities against certain rules. Logic for a single entity, e.g Customer can be used all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=713&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2011/02/07/c-clean-up-your-linq-queries-and-lambda-expressions/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>C# and abusive dynamic APIs</title>
		<link>http://daniel.wertheim.se/2010/10/23/c-and-abusive-dynamic-apis/</link>
		<comments>http://daniel.wertheim.se/2010/10/23/c-and-abusive-dynamic-apis/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 20:54:49 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Curious George API]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=667</guid>
		<description><![CDATA[I read a blogpost last night about dynamic code and how it could be used to handle arguments passed in to a method, and it got me thinking. I exchanged a couple of tweets with about this and I really didn&#8217;t get any wiser, hence I guess I have to go and try out some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=667&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2010/10/23/c-and-abusive-dynamic-apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>Use extension methods to let your enums hold the logic.</title>
		<link>http://daniel.wertheim.se/2010/07/10/use-extension-methods-to-let-your-enums-hold-the-logic/</link>
		<comments>http://daniel.wertheim.se/2010/07/10/use-extension-methods-to-let-your-enums-hold-the-logic/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 10:25:24 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Extension methods]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=614</guid>
		<description><![CDATA[I often stumble upon code checking values on enumerations to determine the state of some object or rule. At best, this code is extracted and put in a helper or utils class of some sort. Don&#8217;t! Use extension methods instead. It let&#8217;s you provide a name for the condition (rule) that you are checking, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=614&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2010/07/10/use-extension-methods-to-let-your-enums-hold-the-logic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>Where are your Scenarios in your domain?</title>
		<link>http://daniel.wertheim.se/2010/02/11/where-are-your-scenarios-in-your-domain/</link>
		<comments>http://daniel.wertheim.se/2010/02/11/where-are-your-scenarios-in-your-domain/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 21:33:51 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[Entities]]></category>
		<category><![CDATA[Repositories]]></category>
		<category><![CDATA[Scenarios]]></category>
		<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=294</guid>
		<description><![CDATA[If you design your entities before you design your scenarios, you are data-driven! The Scenarios are primary &#8211; The entities are secondary! - Daniel Wertheim My words of what I think is wrong in many projects, and thats what this post is about. Definition of Scenario a postulated sequence of possible events - http://wordnetweb.princeton.edu/perl/webwn?s=scenario In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=294&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2010/02/11/where-are-your-scenarios-in-your-domain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>The Moq, mockingframework, and the tangling of Stubs and Mocks</title>
		<link>http://daniel.wertheim.se/2010/01/12/the-moq-mockingframework-and-the-tangling-of-stubs-and-mocks/</link>
		<comments>http://daniel.wertheim.se/2010/01/12/the-moq-mockingframework-and-the-tangling-of-stubs-and-mocks/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 19:45:34 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Fakes]]></category>
		<category><![CDATA[Mocks]]></category>
		<category><![CDATA[Moq]]></category>
		<category><![CDATA[Stubs]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=204</guid>
		<description><![CDATA[When I need the powers of a Faking-framework I use the Moq-framework, which I use when I feel that it is to much work for creating a manual Fake (which I only do with stubs). There&#8217;s one thing that I really don&#8217;t like with Moq, the tangling of Mocks and Stubs. I like to see [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=204&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2010/01/12/the-moq-mockingframework-and-the-tangling-of-stubs-and-mocks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>Extend IQueryable instead of a certain dataprovider &#8211; more decoupled code</title>
		<link>http://daniel.wertheim.se/2009/11/21/extend-iqueryable-instead-of-a-certain-dataprovider-more-decoupled-code/</link>
		<comments>http://daniel.wertheim.se/2009/11/21/extend-iqueryable-instead-of-a-certain-dataprovider-more-decoupled-code/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 22:29:12 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Architecture, Design]]></category>
		<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Extension methods]]></category>
		<category><![CDATA[IQueryable]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://daniel.wertheim.se/?p=127</guid>
		<description><![CDATA[This is going to be a real short post and is more of an update to my last post (Entity validaton using Custom Data Annotation attributes) then a new one. I have made two small technical changes and with these small changes I have gained a more decoupled code. Change One Instead of having a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=127&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2009/11/21/extend-iqueryable-instead-of-a-certain-dataprovider-more-decoupled-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
		<item>
		<title>Does code have to be Localized for achieving a &#8220;Ubiquitous Language&#8221;?</title>
		<link>http://daniel.wertheim.se/2009/10/13/does-code-have-to-be-localized-for-achieving-a-ubiquitous-language/</link>
		<comments>http://daniel.wertheim.se/2009/10/13/does-code-have-to-be-localized-for-achieving-a-ubiquitous-language/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 19:05:10 +0000</pubDate>
		<dc:creator>Daniel Wertheim</dc:creator>
				<category><![CDATA[Clean code]]></category>
		<category><![CDATA[Ubiquitous Language]]></category>

		<guid isPermaLink="false">http://danielwertheim.wordpress.com/?p=17</guid>
		<description><![CDATA[Recently I have encountered C# code containing names found in the business that the applications maps to. So far so good except that the names of objects, methods, properties, functions etc. were written in Swedish and of course with special characters like &#8220;Å, Ä, Ö&#8221; My question is “Does code has to be localized for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=daniel.wertheim.se&amp;blog=9709818&amp;post=17&amp;subd=danielwertheim&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://daniel.wertheim.se/2009/10/13/does-code-have-to-be-localized-for-achieving-a-ubiquitous-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/274ce0291206c9d27635a865ac48b5c4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Daniel</media:title>
		</media:content>
	</item>
	</channel>
</rss>
