<?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/"
	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>Comments for Corey Coogan</title>
	<atom:link href="http://blog.coreycoogan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coreycoogan.com</link>
	<description>Python, .Net, C#, ASP.NET MVC, Architecture and Design</description>
	<lastBuildDate>Tue, 07 Feb 2012 04:33:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Mocking DateTime.Now by Elegant Code &#187; NuGet Project Uncovered: Deleporter</title>
		<link>http://blog.coreycoogan.com/2009/06/07/mocking-datetime-now/#comment-369</link>
		<dc:creator><![CDATA[Elegant Code &#187; NuGet Project Uncovered: Deleporter]]></dc:creator>
		<pubDate>Tue, 07 Feb 2012 04:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=37#comment-369</guid>
		<description><![CDATA[[...] Now how do you do things like mock out crazy dependencies, adjust the time in your favorite SystemTime implementation or just tweak the configuration on the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Now how do you do things like mock out crazy dependencies, adjust the time in your favorite SystemTime implementation or just tweak the configuration on the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visitor Pattern: A Real World Example by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/#comment-365</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 13:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=76#comment-365</guid>
		<description><![CDATA[I would avoid implementing an interface and then not implementing them.  This is a violation of the &lt;a href=&quot;http://www.objectmentor.com/publications/isp.pdf&quot; title=&quot;Uncle Bob&#039;s Explanation (PDF)&quot; rel=&quot;nofollow&quot;&gt;Interface Segregation Principal&lt;/a&gt;, which states that a classes should depend on the smallest possible interface.

You could potentially use the &lt;a href=&quot;http://en.wikipedia.org/wiki/Strategy_pattern&quot; rel=&quot;nofollow&quot;&gt;Strategy pattern&lt;/a&gt; and define which strategy is going to be used at runtime.  Then you know you are calling on only the strategy implementation you need.]]></description>
		<content:encoded><![CDATA[<p>I would avoid implementing an interface and then not implementing them.  This is a violation of the <a href="http://www.objectmentor.com/publications/isp.pdf" title="Uncle Bob's Explanation (PDF)" rel="nofollow">Interface Segregation Principal</a>, which states that a classes should depend on the smallest possible interface.</p>
<p>You could potentially use the <a href="http://en.wikipedia.org/wiki/Strategy_pattern" rel="nofollow">Strategy pattern</a> and define which strategy is going to be used at runtime.  Then you know you are calling on only the strategy implementation you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visitor Pattern: A Real World Example by Fathom Savvy</title>
		<link>http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/#comment-364</link>
		<dc:creator><![CDATA[Fathom Savvy]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 01:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=76#comment-364</guid>
		<description><![CDATA[Thanks for the Article!  It was enough to make me realize rhat the pattern is designed to be used with Polymorphic classes.  You setup the interface so that it has a Visit method for each of the derived classes.  Then you can create any class (implementing the interface) to do whatever you want with each of the derived classes.  So I&#039;m thinking you&#039;d only want to use the visitor pattern if you have a need for one class to use all of the derived classes.  If the class in question only used 1 of the derived classes, then a different pattern would be called for.  Right?  Or would you use the visitor pattern and throw NotSupportedExceptions for the derived classes that have no importance or could be used by mistake.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the Article!  It was enough to make me realize rhat the pattern is designed to be used with Polymorphic classes.  You setup the interface so that it has a Visit method for each of the derived classes.  Then you can create any class (implementing the interface) to do whatever you want with each of the derived classes.  So I&#8217;m thinking you&#8217;d only want to use the visitor pattern if you have a need for one class to use all of the derived classes.  If the class in question only used 1 of the derived classes, then a different pattern would be called for.  Right?  Or would you use the visitor pattern and throw NotSupportedExceptions for the derived classes that have no importance or could be used by mistake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-355</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 14:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-355</guid>
		<description><![CDATA[Your structure is a little different than I would typically use, but I think it&#039;s probably just your naming convention.  For example, I see no Domain project, so I&#039;m guessing your EF project is your domain.

Are you passing your entities directly to your web project or just using DTO&#039;s?  I would recommend looking at the Sharp Architecture project for a better idea of structuring dependencies.]]></description>
		<content:encoded><![CDATA[<p>Your structure is a little different than I would typically use, but I think it&#8217;s probably just your naming convention.  For example, I see no Domain project, so I&#8217;m guessing your EF project is your domain.</p>
<p>Are you passing your entities directly to your web project or just using DTO&#8217;s?  I would recommend looking at the Sharp Architecture project for a better idea of structuring dependencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Sushant K</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-354</link>
		<dc:creator><![CDATA[Sushant K]]></dc:creator>
		<pubDate>Fri, 25 Nov 2011 00:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-354</guid>
		<description><![CDATA[Thanks a lot for your response. here is how my project is structured--

web Project (controller) --  this creates the container and installs the components.
        &#124;
	&#124;  references
	V
Service Project -- this has the Services (example UserService -- login(), retirevepassword() etc.)
entity Project -- this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService etc.)
	&#124;
	&#124;
	V
Repository Project -- this has Repositories (UserRepository -- GetUsers(), AddUser(), DeleteUser() etc.)
entity Project -- this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService, IuserRepository etc.)
	&#124;
	&#124;
	V
Data project -- This has the entity Framework Data Model

Now, since my web project has reference to Service project and Entity project, I am able to install UserService into container, but since Service has IUserRepository dependency, it is unable to create it due to the fact that web project does not have reference to the Repository project. (even though the interfaces are all in the separate entity project).

Any help would be highly appreciated.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot for your response. here is how my project is structured&#8211;</p>
<p>web Project (controller) &#8212;  this creates the container and installs the components.<br />
        |<br />
	|  references<br />
	V<br />
Service Project &#8212; this has the Services (example UserService &#8212; login(), retirevepassword() etc.)<br />
entity Project &#8212; this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService etc.)<br />
	|<br />
	|<br />
	V<br />
Repository Project &#8212; this has Repositories (UserRepository &#8212; GetUsers(), AddUser(), DeleteUser() etc.)<br />
entity Project &#8212; this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService, IuserRepository etc.)<br />
	|<br />
	|<br />
	V<br />
Data project &#8212; This has the entity Framework Data Model</p>
<p>Now, since my web project has reference to Service project and Entity project, I am able to install UserService into container, but since Service has IUserRepository dependency, it is unable to create it due to the fact that web project does not have reference to the Repository project. (even though the interfaces are all in the separate entity project).</p>
<p>Any help would be highly appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-351</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Sun, 20 Nov 2011 21:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-351</guid>
		<description><![CDATA[In your case, the controller should have references to your repository interfaces, which is typically in some .Data project that has NH mappings, repo interfaces, etc.  Not sure about your web project referencing Entities by interfaces.  Putting interfaces on your entities is generally considered an anti pattern.  

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>In your case, the controller should have references to your repository interfaces, which is typically in some .Data project that has NH mappings, repo interfaces, etc.  Not sure about your web project referencing Entities by interfaces.  Putting interfaces on your entities is generally considered an anti pattern.  </p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by SushantK</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-350</link>
		<dc:creator><![CDATA[SushantK]]></dc:creator>
		<pubDate>Sun, 20 Nov 2011 18:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-350</guid>
		<description><![CDATA[Very nice article. I am currently playing around with the Windsor container in a layered architecture and your article does help a lot in breaking down the layers into specific projects. But I am having a quick question. Hew are the dependencies set for these layers. In my case, I have controller (web project) --&gt;Entity (Interfaces), Service --&gt; business (repository)
But how would I configure the repository in the controller project if I do not have a reference to it.
Thanks for your time.

Sushant]]></description>
		<content:encoded><![CDATA[<p>Very nice article. I am currently playing around with the Windsor container in a layered architecture and your article does help a lot in breaking down the layers into specific projects. But I am having a quick question. Hew are the dependencies set for these layers. In my case, I have controller (web project) &#8211;&gt;Entity (Interfaces), Service &#8211;&gt; business (repository)<br />
But how would I configure the repository in the controller project if I do not have a reference to it.<br />
Thanks for your time.</p>
<p>Sushant</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Vacances Aux Seychelles</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-348</link>
		<dc:creator><![CDATA[Vacances Aux Seychelles]]></dc:creator>
		<pubDate>Sat, 12 Nov 2011 08:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-348</guid>
		<description><![CDATA[&lt;strong&gt;Vacances Aux Seychelles...&lt;/strong&gt;

[...]Castle Windsor Tutorial in Asp.Net MVC &#171; Corey Coogan[...]...]]></description>
		<content:encoded><![CDATA[<p><strong>Vacances Aux Seychelles&#8230;</strong></p>
<p>[...]Castle Windsor Tutorial in Asp.Net MVC &laquo; Corey Coogan[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding Icons to ValidationSummary and Information Boxes with JQuery by mytradetwiti.com</title>
		<link>http://blog.coreycoogan.com/2009/11/02/adding-icons-to-validationsummary-and-information-boxes-with-jquery/#comment-347</link>
		<dc:creator><![CDATA[mytradetwiti.com]]></dc:creator>
		<pubDate>Thu, 10 Nov 2011 04:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=176#comment-347</guid>
		<description><![CDATA[&lt;strong&gt;mytradetwiti.com...&lt;/strong&gt;

[...]Adding Icons to ValidationSummary and Information Boxes with JQuery &#171; Corey Coogan[...]...]]></description>
		<content:encoded><![CDATA[<p><strong>mytradetwiti.com&#8230;</strong></p>
<p>[...]Adding Icons to ValidationSummary and Information Boxes with JQuery &laquo; Corey Coogan[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery&#8217;s Dialog and Form Problems by Steve</title>
		<link>http://blog.coreycoogan.com/2010/12/01/jquerys-dialog-and-form-problems/#comment-346</link>
		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Fri, 04 Nov 2011 18:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=351#comment-346</guid>
		<description><![CDATA[Thanks for posting this.  Saved me some time....]]></description>
		<content:encoded><![CDATA[<p>Thanks for posting this.  Saved me some time&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

