Exploring dependency injection in Ruby - Remi Mercier

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 https://rubyonrails.ba/single/exploring-dependency-injection-in-ruby-remi-mercier

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles