Главная
Study mode:
on
1
Introduction
2
What is dependency injection
3
Data dependency
4
Constants
5
Behaviors
6
Bundles
7
Optional Behaviors
8
Passing Dependencies
9
Dependency Injection
10
Creating Fixtures in Test
11
Using a Shared Pointer
12
Using a Reference
13
piping
14
function arguments
15
translator and formatter
16
factory
17
unique pointer
18
shared pointer
19
advantages and disadvantages
20
sharing pointer
21
factories
22
wiring
23
component hierarchy
24
structs
25
Disadvantages
26
Testability
27
Conclusion
Description:
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

Meeting Cpp
Add to list
0:00 / 0:00