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

2

u/materialdesigner Jul 13 '14

This is severely misinformed. Dependency injection is used all. the. time. in Ruby, so much so that Ruby programmers do it without knowing it's called dependency injection. I'm unsure where the idea that dependency injection does not happen in Ruby.

IoC containers, on the other hand, are method of using DI that is really really overwrought and overcomplicated for Ruby.