YoVDO

How to Use Dependency Injection to Write Maintainable Software

Offered By: Meeting Cpp via YouTube

Tags

Dependency Injection Courses C++ Courses Software Design Courses Pointers Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

Syllabus

Introduction
What is dependency injection
Data dependency
Constants
Behaviors
Bundles
Optional Behaviors
Passing Dependencies
Dependency Injection
Creating Fixtures in Test
Using a Shared Pointer
Using a Reference
piping
function arguments
translator and formatter
factory
unique pointer
shared pointer
advantages and disadvantages
sharing pointer
factories
wiring
component hierarchy
structs
Disadvantages
Testability
Conclusion


Taught by

Meeting Cpp

Related Courses

AngularJS: Framework Fundamentals
Microsoft via edX
Архитектура Android-приложений
Moscow Institute of Physics and Technology via Coursera
Client-based Web Applications development: ReactJS & Angular
Universidad Politécnica de Madrid via Miríadax
Getting Started with Blazor Server
Coursera Project Network via Coursera
Getting Started with Blazor WASM
Coursera Project Network via Coursera