AI Product Expert Certification - Master Generative AI Skills
50% OFF: In-Depth AI & Machine Learning Course
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Discover effective techniques for managing dependencies through dependency injection in C++ to create decoupled, easily refactored, and testable components. Learn how to handle dependencies on both data and behaviors, explore suitable situations for each approach, and discover libraries that simplify the process. Gain insights into writing components that effectively accept dependencies, propagating them throughout your codebase, and addressing complex scenarios involving multiple component dependencies and deferred instantiation. Apply these practical strategies to transform and simplify typical production code, enhancing maintainability and understanding of your software systems.
Syllabus
Intro
Dependency Injection
How to pass dependencies around
Data which is constant
Data which might change
Passing the dependencies
References are Universal
Factories
Unique Point
The Solution
Advantages and Disadvantages
Testability
Recap
Conclusion
Questions
Can it work
Passing as a parameter
Multiple functions
Piping
Taught by
CppCon