Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Refactoring C++ Code for Unit Testing with Dependency Injection

CppCon via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn about dependency injection principles and implementation strategies for C++ code in this conference talk from CppCon 2024. Explore fundamental building blocks including link-time substitution, dummies, inheritance-based interfaces, templates, and polymorphic function wrappers while understanding their relative strengths and optimal use cases. Discover practical approaches for injecting multiple dependencies without relying on singletons, factories or global state, and gain insights into refactoring legacy codebases to support dependency injection with minimal disruption. Master techniques for creating well-structured, testable, and extensible code through real-world examples presented by Peter Muldoon, a veteran C++ developer with over 30 years of experience across technology and finance sectors.

Syllabus

Refactoring C++ Code for Unit testing with Dependency Injection - Peter Muldoon - CppCon 2024

Taught by

CppCon

Reviews

Start your review of Refactoring C++ Code for Unit Testing with Dependency Injection

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.