/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

blog.ploeh.dk
| | solnic.dev

I was wondering what do we, rubyists, think about dependency injection these days as I remember some discussions about it which were mostly lots of post-java-trauma type of criticism. I had this blog post in the back of my head for a long time but knowing that this subject was sort of...explored...
4.5 parsecs

Travel
| |
| | sookocheff.com

Inversion of Control (IoC), also known as Dependency Injection (DI), allows an object to define their dependencies as constructor arguments (strictly speaking, you can set these dependencies as properties, but the examples I will use today are constructor-based). This is the inverse of the object itself controlling the instantiation or location of its dependencies, hence the name Inversion of Control. Let's look at an example from Stackoverflow using a text editor with a spell checking component:
5.1 parsecs

Travel
| |
| | simpleprogrammer.com

What Languages to Learn, How to Structure Code, Algorithms & Data Structures, Methodologies, Source Control, Object Oriented Design, Frameworks or Stack ...
4.8 parsecs

Travel
| |
| | schadokar.dev

Setup serverless framework and create a hello function using the serverless template and deploy it on the cloud.
38.6 parsecs

Travel
|