#dependency injection
Posts tagged with “dependency injection”.
2 posts
01
The Dependency Inversion Principle Explained
Dependency inversion says high-level policy should not depend on low-level detail. Learn what that means in practice and why it makes code testable.
02
The Singleton Pattern: Uses, Abuses, and Alternatives
Singleton guarantees one instance of a class. Learn how it works, why it is often criticised, and the better alternatives in modern code.