Overview
Explore the concept of Dependency Injection (DI) in C++ through this comprehensive conference talk from C++Now 2019. Delve into the simplicity and power of DI, learning how it's inherently used in constructor implementations. Examine real-world success stories of DI application in various projects, weighing the pros and cons of its usage. Understand why DI is crucial for maintaining and testing code in environments with changing requirements. Compare different DI methods, approaches, and frameworks, including templates, concepts, type-erasure, inheritance, and variant. Gain insights into runtime and compile-time injection, and explore popular DI frameworks like [Boost].DI, Google.Fruit, and Hyperdemic. Learn to apply DI effectively in your C++ projects, covering topics such as design principles, simple implementation, testability, Single Responsibility Principle, coupling, and test-driven development. By the end, acquire a clear understanding of DI use cases, benefits, and guidelines for proper implementation in C++ programming.
Syllabus
Introduction
Agenda
Design principles
Simple implementation
Testable
Single Responsibility Principle
Coupling
Distance Friends
Function
Virtual concepts
Man approach concepts
Wiring concepts
Testing concepts
TDD testdriven development
Is it flexible
Good practice
Wiring
Wire in mass
Frameworks
Taught by
CppNow