|
You are here |
blog.p-y.wtf | ||
| | | | |
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: | |
| | | | |
ryanharter.com
|
|
| | | | | I recently gave a presentation about how Dagger works under the hood, and I was once again struck by the elegance of the javax.inject.Provider interface. The interface is so simple it almost seems useless, but it's also incredibly flexible, and forms the basis of much of the code generated by Dagger. Like many dependency injection frameworks for JVM languages, Dagger uses and builds on the standard set of annotations for injectable classes defined in JSR-330 and provided in the javax. | |
| | | | |
markphelps.me
|
|
| | | | | An explanation of Dependency Injection in Go and why it's useful. | |
| | | | |
mattiasgustavsson.com
|
|
| | | I wanted to talk a little about my approach to unit testing, and the small framework I've written to help me write and run tests. Iam not an expert in unit testing. Idon't even give it that much priority, to be honest. Imean, sure, I recognize its usefulness in many circumstances, but I do fee | ||