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

YouTube

Working with C++ Legacy Code

NDC Conferences via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk presents practices for adding features and fixing bugs in large, undocumented C++ codebases while reducing the risk of introducing more bugs. It demonstrates using unit tests, fakes, mocks, and templates to make difficult code testable and easier to extend.

Syllabus

Intro
No longer engineered - continuedly patched
Written by someone else
The good news and bad news
Gaining control over legacy code
This is a unit test (GTest)
A quick reality check
Sensing and Separation
The solution-fake/mock objects
Fake objects using Google Mock
Non virtual methods
Hard to inherit classes
Problem: un-fakeable methods
Using templates for injection
Faking Private and Protected Methods
Taking control of existing legacy code

Taught by

NDC Conferences

Reviews

Start your review of Working with C++ Legacy Code

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.