Things dependency injection is not about
Clarifies misconceptions about dependency injection, explaining what it is not: service location, shared dependencies, or auto-wiring.
Clarifies misconceptions about dependency injection, explaining what it is not: service location, shared dependencies, or auto-wiring.
A tutorial on using Dependency Injection to mock network services in iOS View Controllers for better testability and separation of concerns.
Explores the trade-offs between global and scoped dependency access in Flutter, focusing on testability and using Provider for state management.
Explores Effective Java items 3-5 on controlling object instantiation, covering utility classes, singletons, and dependency injection.
Explains and demonstrates the behavior of Singleton, Scoped, and Transient service lifetimes in client-side and server-side Blazor applications.
Explains how to register a service both as an interface and as its concrete type in ASP.NET Core's built-in dependency injection container.
A tutorial on adding a 'Create Post' feature with Markdown support to a Blazor-based blogging application, covering backend service and API setup.
A Laravel developer critiques the service locator pattern, explaining its drawbacks like runtime errors and increased cognitive load in software design.
A guide to implementing asynchronous initialization in ASP.NET Core using custom middleware, addressing scoped service limitations.
A tutorial explaining the Dependency Injection design pattern in Swift, covering its basics, variations, and implementation for writing loosely coupled code.
A beginner-friendly explanation of dependency injection using a car analogy, contrasting it with inheritance and promoting composition.
A guide to testing code that uses randomness or time by using dependency injection to make tests deterministic.
Explains how to inject and use UrlHelper in ASP.NET Core MVC to generate dynamic hypermedia links in API responses.
A tutorial on using the new @inject directive to perform dependency injection directly into views in ASP.NET Core 2.0 MVC.
Explains three methods for unit testing C# code that uses HttpClient, including wrapping it with an interface for mocking.
Key considerations for migrating from ASP.NET to ASP.NET Core 2, covering Dependency Injection, project files, and Razor Pages.
Stitcher CMS alpha 5 released, adding plugin support and PHP 7 compatibility as the final alpha before the beta phase.
Explains Stitcher's plugin system built on Composer autoloading and Symfony's service container, with a practical example.
A technical guide on integrating Google Guice dependency injection with Hazelcast's distributed ExecutorService for stateful tasks in Java.
Explains how to use Swift protocol composition to simplify dependency injection and reduce boilerplate in iOS projects.