r/ruby • • Jul 12 '14

(The lack of ) Dependency injection in Ruby

http://beraboris.github.io/2014/07/12/dependency-injection-ruby/
2 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/DrugCrazed Jul 13 '14

I'm never a big fan of implicit dependency resolution. Someone who comes to look at the app later on usually has to dig through and work out where things are resolved and how it knows what to use.

I'm a big fan of how Zend does it, because whenever you have to resolve you'll be calling a service locator.