Exploring dependency injection in Ruby - Remi Mercier
13-Dec-2021 1124
Lately, I’ve been interested in abstractions: why objects behave the way they do, how do we architecture our code so it’s open to change (without causing unnecessary headaches), to which class that specific behavior should belong? And during that time, I’ve repeatedly heard folks talk about dependency injection.I’m glad to report that I’ve finally managed to wrap my head around this enough to use this practice regularly. I guess it’s time for me to give you a tour of my current understanding of dependency injection: what it is, why do you need it, and how to use it?.
Exploring dependency injection in Ruby - Remi Mercier #ruby #rubydeveloper #rubyonrails #Exploring #dependency #injection #Mercier https://rubyonrails.ba/link/exploring-dependency-injection-in-ruby-remi-mercier