<?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: Coding: Role based interfaces</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave Cameron</title>
		<link>http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/comment-page-1/#comment-25096</link>
		<dc:creator>Dave Cameron</dc:creator>
		<pubDate>Thu, 22 Oct 2009 04:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1737#comment-25096</guid>
		<description>@Mark: I quite like this, and your explanation. It seems a very good example of tell-don&#039;t-ask, or at least east-oriented code. Introducing the interface should make it easier to break in to a separate class, if we really need to.

@Daniel: We already use an IoC container in this code base. Unity. At the time the controller is resolved, we don&#039;t know which content we need. And, with the exception of one item, we don&#039;t resolve anything afterwards. We could, but this solution seems tidy for the time being.</description>
		<content:encoded><![CDATA[<p>@Mark: I quite like this, and your explanation. It seems a very good example of tell-don&#8217;t-ask, or at least east-oriented code. Introducing the interface should make it easier to break in to a separate class, if we really need to.</p>
<p>@Daniel: We already use an IoC container in this code base. Unity. At the time the controller is resolved, we don&#8217;t know which content we need. And, with the exception of one item, we don&#8217;t resolve anything afterwards. We could, but this solution seems tidy for the time being.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/comment-page-1/#comment-24882</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Mon, 19 Oct 2009 15:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1737#comment-24882</guid>
		<description>&lt;strong&gt;Coding: Role based interfaces - Mark Needham...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...</description>
		<content:encoded><![CDATA[<p><strong>Coding: Role based interfaces &#8211; Mark Needham&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Marbach</title>
		<link>http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/comment-page-1/#comment-24834</link>
		<dc:creator>Daniel Marbach</dc:creator>
		<pubDate>Mon, 19 Oct 2009 07:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1737#comment-24834</guid>
		<description>Hello Mark,
Why not using an IoC framwork? For example ninject allows you to do context sensitive binding that allows you to specify what kind of concrete instances need to be injected when a type is requested in a specific context. That would solve all your problems ;)

Daniel</description>
		<content:encoded><![CDATA[<p>Hello Mark,<br />
Why not using an IoC framwork? For example ninject allows you to do context sensitive binding that allows you to specify what kind of concrete instances need to be injected when a type is requested in a specific context. That would solve all your problems <img src='http://www.markhneedham.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #457</title>
		<link>http://www.markhneedham.com/blog/2009/10/18/coding-role-based-interfaces/comment-page-1/#comment-24833</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #457</dc:creator>
		<pubDate>Mon, 19 Oct 2009 07:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1737#comment-24833</guid>
		<description>[...] Coding: Role based interfaces - Mark Needham discusses how you can support different user interfaces for users in different roles using the MVC pattern [...]</description>
		<content:encoded><![CDATA[<p>[...] Coding: Role based interfaces &#8211; Mark Needham discusses how you can support different user interfaces for users in different roles using the MVC pattern [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

