<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dependency Injection on Artur Rios Lab</title><link>https://lab.artur-rios.tech/tags/dependency-injection/</link><description>Recent content in Dependency Injection on Artur Rios Lab</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 20 Oct 2026 23:00:00 +0000</lastBuildDate><atom:link href="https://lab.artur-rios.tech/tags/dependency-injection/index.xml" rel="self" type="application/rss+xml"/><item><title>What Is Inversion of Control? Frameworks, Callbacks, Dependency Injection and Containers</title><link>https://lab.artur-rios.tech/concepts/inversion-of-control/</link><pubDate>Tue, 20 Oct 2026 23:00:00 +0000</pubDate><guid>https://lab.artur-rios.tech/concepts/inversion-of-control/</guid><description>&lt;p&gt;A web framework calls a function when a request arrives. A test runner finds&#10;the tests in a file and runs each one. A browser calls a handler when a button&#10;is clicked, and an application server hands a class the database connection it&#10;asked for in its constructor. In each case the code a programmer wrote does not&#10;decide when it runs or where its collaborators come from: something else does.&#10;That reversal has a name, &lt;strong&gt;inversion of control&lt;/strong&gt;, and it is one of the ideas&#10;most of modern software is quietly built on. This article explains what it&#10;means, where the term came from, the forms it takes, how dependency injection&#10;and IoC containers work inside, and when the indirection is worth paying for.&#10;It closes a series on &lt;a href="../../series/solid/"&gt;SOLID&lt;/a&gt;: where the&#10;&lt;a href="../dependency-inversion-principle/"&gt;dependency inversion principle&lt;/a&gt; says which&#10;way dependencies should point, this is the mechanism that makes them point&#10;that way at run time. Every output shown here was produced by running the code on Windows 11, with&#10;Python 3.14.6 and with the .NET 10 SDK and Microsoft.Extensions.DependencyInjection&#10;10.0.13, not written by hand.&lt;/p&gt;</description></item></channel></rss>