<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1040641208362137940.post1973775578381253213..comments</id><updated>2008-10-02T18:09:44.736+02:00</updated><category term='NDepend'/><category term='Design'/><category term='TDD'/><category term='Castle'/><category term='Maintainability'/><category term='Velocity'/><category term='Agile'/><category term='Windsor'/><category term='Quality'/><title type='text'>Comments on ViaBrains: Register services in Windsor</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.viabrains.com/feeds/1973775578381253213/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default'/><link rel='alternate' type='text/html' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html'/><author><name>Martin Nilsson</name><uri>http://www.blogger.com/profile/03835928417062723879</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_CsM1VmS_9cA/SLUDzQNoAmI/AAAAAAAAAmw/BJDNQ4-_2oc/S220/di97mni.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1040641208362137940.post-3691427153479990413</id><published>2008-10-02T18:09:00.000+02:00</published><updated>2008-10-02T18:09:00.000+02:00</updated><title type='text'>Great! Then we have the same opinion then. Good to...</title><content type='html'>Great! Then we have the same opinion then. Good to point out that both are needed thou for other readers. Thanks Bernardo.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/3691427153479990413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/3691427153479990413'/><link rel='alternate' type='text/html' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html?showComment=1222963740000#c3691427153479990413' title=''/><author><name>Martin Nilsson</name><uri>http://www.blogger.com/profile/03835928417062723879</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_CsM1VmS_9cA/SLUDzQNoAmI/AAAAAAAAAmw/BJDNQ4-_2oc/S220/di97mni.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html' ref='tag:blogger.com,1999:blog-1040641208362137940.post-1973775578381253213' source='http://www.blogger.com/feeds/1040641208362137940/posts/default/1973775578381253213' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-991432630'/></entry><entry><id>tag:blogger.com,1999:blog-1040641208362137940.post-8919489260672871708</id><published>2008-10-02T18:02:00.000+02:00</published><updated>2008-10-02T18:02:00.000+02:00</updated><title type='text'>Then you missed my point, hehehe.&lt;br&gt;&lt;br&gt;I never s...</title><content type='html'>Then you missed my point, hehehe.&lt;BR/&gt;&lt;BR/&gt;I never said you shouldn't use Component.For. I just said that this approach introduces friction. If that's a tradeoff you are willing to do, by all means do it, but always favor the least-friction approach.&lt;BR/&gt;&lt;BR/&gt;Cheers,&lt;BR/&gt;Bernardo Heyneman</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/8919489260672871708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/8919489260672871708'/><link rel='alternate' type='text/html' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html?showComment=1222963320000#c8919489260672871708' title=''/><author><name>Bernardo Heynemann</name><uri>http://www.blogger.com/profile/13719132951779848435</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html' ref='tag:blogger.com,1999:blog-1040641208362137940.post-1973775578381253213' source='http://www.blogger.com/feeds/1040641208362137940/posts/default/1973775578381253213' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-609184235'/></entry><entry><id>tag:blogger.com,1999:blog-1040641208362137940.post-1055062334880728625</id><published>2008-10-02T17:59:00.000+02:00</published><updated>2008-10-02T17:59:00.000+02:00</updated><title type='text'>Bernardo,&lt;br&gt;&lt;br&gt;There is a need for both of them....</title><content type='html'>Bernardo,&lt;BR/&gt;&lt;BR/&gt;There is a need for both of them. I use the automatic registration for my controllers, presenters, services, repositories, etc but I register some components with "Component.For(..)" when I want a specific setup. For example, when I'm running my application in Sweden I want this payment provider and in UK I want another one but I don't want both and have to get them by component key.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/1055062334880728625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/1055062334880728625'/><link rel='alternate' type='text/html' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html?showComment=1222963140000#c1055062334880728625' title=''/><author><name>Martin Nilsson</name><uri>http://www.blogger.com/profile/03835928417062723879</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_CsM1VmS_9cA/SLUDzQNoAmI/AAAAAAAAAmw/BJDNQ4-_2oc/S220/di97mni.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html' ref='tag:blogger.com,1999:blog-1040641208362137940.post-1973775578381253213' source='http://www.blogger.com/feeds/1040641208362137940/posts/default/1973775578381253213' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-991432630'/></entry><entry><id>tag:blogger.com,1999:blog-1040641208362137940.post-7519039617890219575</id><published>2008-10-02T17:06:00.000+02:00</published><updated>2008-10-02T17:06:00.000+02:00</updated><title type='text'>The second one is not an option to the first one.&lt;...</title><content type='html'>The second one is not an option to the first one.&lt;BR/&gt;&lt;BR/&gt;There's a lot of friction that can be resolved using an IoC Container (I intend to talk about that in my book hehehe).&lt;BR/&gt;&lt;BR/&gt;The goal of having an IoC container in place is reaching that "it just works" nirvana when it comes to managing dependencies between components.&lt;BR/&gt;&lt;BR/&gt;The first scenario that you showcased really does that, meaning if I add a new service and has some component depend on that service (via constructor or setter injections), it just works.&lt;BR/&gt;&lt;BR/&gt;The second scenario on the other hand has the pain point of making me remember to register a service with the container every single time I create a new one. That gets even worse if you inject your controllers, since these tend to be created fairly often (every time some new functionality comes, usually you get a new controller).&lt;BR/&gt;&lt;BR/&gt;Even so, I loved the post! Way to go Martin.&lt;BR/&gt;&lt;BR/&gt;Bernardo Heynemann</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/7519039617890219575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1040641208362137940/1973775578381253213/comments/default/7519039617890219575'/><link rel='alternate' type='text/html' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html?showComment=1222959960000#c7519039617890219575' title=''/><author><name>Bernardo Heynemann</name><uri>http://www.blogger.com/profile/13719132951779848435</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.viabrains.com/2008/10/register-services-in-windsor.html' ref='tag:blogger.com,1999:blog-1040641208362137940.post-1973775578381253213' source='http://www.blogger.com/feeds/1040641208362137940/posts/default/1973775578381253213' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-609184235'/></entry></feed>
