It is important to understand that IoC is just a pattern to help you to
achieve a more loosely coupled design (still subjective to call "better"
because of better being subjective). it is based on the fact that clients
don't need to know how to construct other systems just to consume them, so
this part of the control is inverted. There are several ways of implementing
IoC, injection or using a container is just another way like Service Locator
or Factory Pattern.
For further reading about it,
http://martinfowler.com/articles/injection.html

Now, no pattern can be taken as gold for every system, but since Dependency
Injection and IoC encourages depending on abstractions rather than
concretions it certainly helps to increase testability and encourages (not
mandates) SoC. Since dependencies can be very dangerous for any non-trivial
system, efficient management of them always will pay off.

You can still stick to these rules towards a "better" design and not use any
IoC as a pattern or tool, it is not optimal may be but certainly possible.

The question has anything to do neither with NH nor with DDD per se though,
so may be altdotnet group is a better group to fire these design questions
towards.

On Thu, Aug 6, 2009 at 11:48 PM, Guga Oliveira <[email protected]>wrote:

>
> Inversion of Control, it is used for better Domain Driven Design. Do
> you know if it is better to use or not use with your experiences. Can
> you share with us your toughts?
>
>
> On 6 ago, 13:50, Tuna Toksoz <[email protected]> wrote:
> > What do you mean by IoC, for what purpose do you use it?
> >
> > Tuna Toksöz
> > Eternal sunshine of the open source mind.
> >
> >
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
> >
> > On Thu, Aug 6, 2009 at 7:48 PM, Guga Oliveira <[email protected]
> >wrote:
> >
> >
> >
> > >  preffers without IoC.
> >
> > > What is the opinion of the mastere? Use or not? If it will be beter to
> > > use somo IoC. What is most indicated, Castle or Spring?- Ocultar texto
> das mensagens anteriores -
> >
> > - Mostrar texto das mensagens anteriores -
> >
>


-- 
Sidar Ok

http://www.sidarok.com
http://www.twitter.com/sidarok

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to