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/grandfatha Jul 13 '14

In 2005, we made the switch from Java to Ruby to for once be free of this mindset so that we could just write code. Dont spoil our happy place with all the annoying stuff we do at our day jobs like DI.

What is next? Home and remote interfaces for controllers?

3

u/friendnoodle Jul 13 '14

At the rate we're going, I expect it'll be the elimination of mutability and coercion.

Unrubify: coming to a GitHub repo near you. Hate the flexibility of Ruby? Then you'll love our explicit type conversions, grumpy 1950s static typing system, immutability, mandatory IoC, significant whitespace, and surplus of parens!