Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Grab it
Discover effective techniques for managing dependencies through dependency injection in C++ at this Meeting C++ 2022 conference talk. Learn how to write decoupled, easily refactored, and testable components by exploring approaches to handle both data and behavior dependencies. Gain insights into managing multiple component dependencies, deferred instantiation using factories, and practical strategies for simplifying production code. Explore topics including constant and optional behaviors, passing dependencies, creating test fixtures, using shared and unique pointers, and implementing component hierarchies. Understand the advantages and potential drawbacks of dependency injection while improving code maintainability, refactorability, and testability.
How to Use Dependency Injection to Write Maintainable Software