Which IoC container should I use?

2011-02-20 Thread Bec Carter
G'Day,

What IoC containers do you all recommend? There are so many around!

Cheers,
Bec


Re: Which IoC container should I use?

2011-02-20 Thread Michael Minutillo
I like Autofac but I've only just really started using it.
This article is what made me try it out:
http://nblumhardt.com/2010/01/the-relationship-zoo/

In the past I've used Unity at work which was...ok.

--
Michael M. Minutillo
Indiscriminate Information Sponge
Blog: http://wolfbyte-net.blogspot.com


On Mon, Feb 21, 2011 at 8:23 AM, Bec Carter  wrote:

> G'Day,
>
> What IoC containers do you all recommend? There are so many around!
>
> Cheers,
> Bec
>


Re: Which IoC container should I use?

2011-02-20 Thread Scott Barnes
Life without AutoFac isn't life worth living..

I call it my little secret prayer... "oh no, i've backed myself into a OO
corner.. i really need FooClass but my composition is a mess dear .Net
gods, i'm praying for FooClass...BING!...there it is.." :)

Its like you're cheating at code :D

---
Regards,
Scott Barnes
http://www.riagenic.com


On Mon, Feb 21, 2011 at 11:01 AM, Michael Minutillo <
michael.minuti...@gmail.com> wrote:

> I like Autofac but I've only just really started using it.
> This article is what made me try it out:
> http://nblumhardt.com/2010/01/the-relationship-zoo/
>
> In the past I've used Unity at work which was...ok.
>
> --
> Michael M. Minutillo
> Indiscriminate Information Sponge
> Blog: http://wolfbyte-net.blogspot.com
>
>
>
> On Mon, Feb 21, 2011 at 8:23 AM, Bec Carter wrote:
>
>> G'Day,
>>
>> What IoC containers do you all recommend? There are so many around!
>>
>> Cheers,
>> Bec
>>
>
>


Re: Which IoC container should I use?

2011-02-20 Thread Noon Silk
On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes  wrote:
> Life without AutoFac isn't life worth living..
> I call it my little secret prayer... "oh no, i've backed myself into a OO
> corner.. i really need FooClass but my composition is a mess

Well there's your problem ... Solution: Become better at programming :-)


> dear .Net
> gods, i'm praying for FooClass...BING!...there it is.." :)
> Its like you're cheating at code :D
> ---
> Regards,
> Scott Barnes
> http://www.riagenic.com

-- 
Noon Silk

http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081 >

Fancy a quantum lunch?
http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."


Re: Which IoC container should I use?

2011-02-20 Thread Matt Siebert
I was trying to answer this for myself recently and found this:

http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containers

It's
a little dated though.  Enterprise Library has had a major release since the
above question was answered.  I'm not sure about the others.

For me, since I'm looking at using some of the other EntLib 'Application
Blocks' (and later maybe Prism) for my project Unity seems like a good fit.
 I've read up on it and it seems pretty full featured.  I haven't actually
implemented anything with it yet since I've been working around some issues
with the Logging Application Block (but that's another story).

While researching this I don't think I read any bad stories about any of the
IoC implementations - they all do the basic job and that's what provides
most of the benefit.

On Mon, Feb 21, 2011 at 10:23 AM, Bec Carter  wrote:

> G'Day,
>
> What IoC containers do you all recommend? There are so many around!
>
> Cheers,
> Bec
>


RE: Which IoC container should I use?

2011-02-20 Thread Richard Jones
Castle Windsor

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Bec Carter
Sent: Monday, 21 February 2011 10:23 AM
To: ozDotNet
Subject: Which IoC container should I use?

G'Day,

What IoC containers do you all recommend? There are so many around!

Cheers,
Bec



Re: Which IoC container should I use?

2011-02-20 Thread Scott Barnes
Ahh, an idealist:)

Combine tight deadlines, tire fire of existing code and lastly the realities
of day to day cubicles in enterprise.. AutoFac is the vaccination one needs
to fight off further downward spiral of bad code.



---
Regards,
Scott Barnes
http://www.riagenic.com


On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk  wrote:

> On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes 
> wrote:
> > Life without AutoFac isn't life worth living..
> > I call it my little secret prayer... "oh no, i've backed myself into a OO
> > corner.. i really need FooClass but my composition is a mess
>
> Well there's your problem ... Solution: Become better at programming :-)
>
>
> > dear .Net
> > gods, i'm praying for FooClass...BING!...there it is.." :)
> > Its like you're cheating at code :D
> > ---
> > Regards,
> > Scott Barnes
> > http://www.riagenic.com
>
> --
> Noon Silk
>
> http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081>
>
> Fancy a quantum lunch?
> http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch
>
> "Every morning when I wake up, I experience an exquisite joy — the joy
> of being this signature."
>


Re: Which IoC container should I use?

2011-02-20 Thread Joseph Cooney
I <3 Autofac.

On 21/02/2011, at 10:23 AM, Bec Carter  wrote:

> G'Day,
> 
> What IoC containers do you all recommend? There are so many around!
> 
> Cheers,
> Bec


Re: Which IoC container should I use?

2011-02-20 Thread Michael Minutillo
I guess it's still early in the day but I'm surprised not to see any
StructureMap/Windsor peeps throwing their hats in the ring.

Back to the original point, most of the containers will provide many of the
same capabilities but in slightly different ways. At the end of the day
there are only so many ways you can build a dictionary of object factories
(which is sort of all an IoC container is). Most of the time the differences
are in how you register components with the container and some of these
features can get quite advanced so by the time you need those, you've
already made your choice.

If you have the time, the best thing for you to do is to build a very small
app representative of the way you'll be doing things and then try each of
the containers out to see how they "feel".


On Mon, Feb 21, 2011 at 10:13 AM, Joseph Cooney wrote:

> I <3 Autofac.
>
> On 21/02/2011, at 10:23 AM, Bec Carter  wrote:
>
> > G'Day,
> >
> > What IoC containers do you all recommend? There are so many around!
> >
> > Cheers,
> > Bec
>


Re: Which IoC container should I use?

2011-02-20 Thread Bec Carter
Thanks for all responses- I will check them out.

On Mon, Feb 21, 2011 at 1:24 PM, Michael Minutillo
 wrote:
> I guess it's still early in the day but I'm surprised not to see any
> StructureMap/Windsor peeps throwing their hats in the ring.
> Back to the original point, most of the containers will provide many of the
> same capabilities but in slightly different ways. At the end of the day
> there are only so many ways you can build a dictionary of object factories
> (which is sort of all an IoC container is). Most of the time the differences
> are in how you register components with the container and some of these
> features can get quite advanced so by the time you need those, you've
> already made your choice.
> If you have the time, the best thing for you to do is to build a very small
> app representative of the way you'll be doing things and then try each of
> the containers out to see how they "feel".
>
>
> On Mon, Feb 21, 2011 at 10:13 AM, Joseph Cooney 
> wrote:
>>
>> I <3 Autofac.
>>
>> On 21/02/2011, at 10:23 AM, Bec Carter  wrote:
>>
>> > G'Day,
>> >
>> > What IoC containers do you all recommend? There are so many around!
>> >
>> > Cheers,
>> > Bec
>
>


Re: Which IoC container should I use?

2011-02-20 Thread Nathan Schultz
I've used both StructureMap and Unity in anger.

These days I'm almost entirely using Unity. Some of our clients require us
to declare any 3rd party libraries we use in development and the Microsoft
Patterns and Practices block is usually already cleared for use.

While Unity may not strictly speaking be the best out there, my company and
many of our clients have standardized on it. It's definitely quite capable,
yet simple enough, and I don't find myself wishing for any other IoC
container.

You could probably poke a stick at any one of the popular ones and find
they'll all fit your needs.



On Mon, Feb 21, 2011 at 10:24 AM, Michael Minutillo <
michael.minuti...@gmail.com> wrote:

> I guess it's still early in the day but I'm surprised not to see any
> StructureMap/Windsor peeps throwing their hats in the ring.
>
> Back to the original point, most of the containers will provide many of the
> same capabilities but in slightly different ways. At the end of the day
> there are only so many ways you can build a dictionary of object factories
> (which is sort of all an IoC container is). Most of the time the differences
> are in how you register components with the container and some of these
> features can get quite advanced so by the time you need those, you've
> already made your choice.
>
> If you have the time, the best thing for you to do is to build a very small
> app representative of the way you'll be doing things and then try each of
> the containers out to see how they "feel".
>
>
>
> On Mon, Feb 21, 2011 at 10:13 AM, Joseph Cooney 
> wrote:
>
>> I <3 Autofac.
>>
>> On 21/02/2011, at 10:23 AM, Bec Carter  wrote:
>>
>> > G'Day,
>> >
>> > What IoC containers do you all recommend? There are so many around!
>> >
>> > Cheers,
>> > Bec
>>
>
>


Re: Which IoC container should I use?

2011-02-20 Thread Arjang Assadi
Aaah both a realist and a pragmatist :)

Regards

On 21 February 2011 13:07, Scott Barnes  wrote:
> Ahh, an idealist:)
> Combine tight deadlines, tire fire of existing code and lastly the realities
> of day to day cubicles in enterprise.. AutoFac is the vaccination one needs
> to fight off further downward spiral of bad code.
>
>
> ---
> Regards,
> Scott Barnes
> http://www.riagenic.com
>
>
> On Mon, Feb 21, 2011 at 11:12 AM, Noon Silk  wrote:
>>
>> On Mon, Feb 21, 2011 at 12:08 PM, Scott Barnes 
>> wrote:
>> > Life without AutoFac isn't life worth living..
>> > I call it my little secret prayer... "oh no, i've backed myself into a
>> > OO
>> > corner.. i really need FooClass but my composition is a mess
>>
>> Well there's your problem ... Solution: Become better at programming :-)
>>
>>
>> > dear .Net
>> > gods, i'm praying for FooClass...BING!...there it is.." :)
>> > Its like you're cheating at code :D
>> > ---
>> > Regards,
>> > Scott Barnes
>> > http://www.riagenic.com
>>
>> --
>> Noon Silk
>>
>> http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081
>> >
>>
>> Fancy a quantum lunch?
>> http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch
>>
>> "Every morning when I wake up, I experience an exquisite joy — the joy
>> of being this signature."
>
>


Re: Which IoC container should I use?

2011-02-20 Thread Arjang Assadi
On 21 February 2011 13:50, Nathan Schultz  wrote:
> I've used both StructureMap and Unity in anger.

Luck skywalker much? :)

Regards

Arjang


RE: Which IoC container should I use?

2011-02-21 Thread David Kean
It entirely depends on what you are looking for in an IoC container, for 
composition I personally use MEF[1] but that's likely a bias because I worked 
on it. I've also heard very good things about Autofac - and looking at the 
latest appears to be very influenced by some of the things we set out to 
achieve in MEF. Not surprisingly, Nick Blumhardt, who owns Autofac, also used 
work on MEF. :)

[1] 
http://msdn.microsoft.com/en-us/library/system.componentmodel.composition.aspx 
 
-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Bec Carter
Sent: Sunday, February 20, 2011 4:23 PM
To: ozDotNet
Subject: Which IoC container should I use?

G'Day,

What IoC containers do you all recommend? There are so many around!

Cheers,
Bec



Re: Which IoC container should I use?

2011-02-21 Thread David Burela
I use http://ninject.org/
at the time it was the only one which offered a fluid interface to do the
configuration in code. I really really dislike using XML to configure things
like this.
(but also because the mascot is a Ninja!)

That said I do hear a lot about Autofac on twitter from the Readify guys.
Maybe I should give it a look.
-David Burela


On 22 February 2011 04:54, David Kean  wrote:

> It entirely depends on what you are looking for in an IoC container, for
> composition I personally use MEF[1] but that's likely a bias because I
> worked on it. I've also heard very good things about Autofac - and looking
> at the latest appears to be very influenced by some of the things we set out
> to achieve in MEF. Not surprisingly, Nick Blumhardt, who owns Autofac, also
> used work on MEF. :)
>
> [1]
> http://msdn.microsoft.com/en-us/library/system.componentmodel.composition.aspx
>
> -Original Message-
> From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
> On Behalf Of Bec Carter
> Sent: Sunday, February 20, 2011 4:23 PM
> To: ozDotNet
> Subject: Which IoC container should I use?
>
> G'Day,
>
> What IoC containers do you all recommend? There are so many around!
>
> Cheers,
> Bec
>
>