Jamis Buck famously wrote a couple of di frameworks for ruby which became
sorta popular, then realised that with ruby it was completely unnecessary.
This blog post whilst quite long and old gives some interesting insite into
DI, Ruby and moving from Java to Ruby (
http://weblog.jamisbuck.org/2008/11/9/legos-play-doh-and-programming).

So you can do DI in ruby easily without frameworks or gems

I don't know if dry-rb is repeating Jamis's mistakes or doing something
elegant and useful with DI. I suspect that its DI parts are useful in its
context of tying together a number of small components which together
produce a framework. Whether they are appropriate for use outside that
context is another matter.

Personally I think its best to start small with things like this and get
some depth to ones understanding before making a big commitment to a
framework or gems.



On 12 July 2016 at 13:02, David Craddock <[email protected]> wrote:

> We are getting to the stage on the product I'm working on, that it might
> be useful to use Dependency Injection.
> https://en.wikipedia.org/wiki/Inversion_of_control
>
> What do you fellow Rubyists think about using DI in Ruby? Are there any
> frameworks or gems that can help this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "North West Ruby User Group (NWRUG)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> Visit this group at https://groups.google.com/group/nwrug-members.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
------------------------
Andrew Premdas
blog.andrew.premdas.org

-- 
You received this message because you are subscribed to the Google Groups 
"North West Ruby User Group (NWRUG)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at https://groups.google.com/group/nwrug-members.
For more options, visit https://groups.google.com/d/optout.

Reply via email to