~/talk

Working with C++ Legacy Code

Talkat NDC TechTown 2018 · 2018-09-27..09-30· [legacy-modernisation]
slides:none on file

Shows concrete techniques to make C++ legacy code safe to change: write automated tests with Google Test and replace dependencies with Google Mock or hand-written fakes; hack singletons via a test-only accessor and use templated dependency injection to replace static or final classes; demonstrates on a TripService kata where tests run and protect refactors. Notes real-world horrors like 10,000-line methods, uses Resharper for C++ on Windows, and argues incremental tests-first refactoring reliably reduces risk.

AI-written summary · about

  1. 0:00Intro
  2. 3:04Legacy Code
  3. 4:09Legacy Code Properties
  4. 4:39Continuously patched and hacked
  5. 6:23Broken features
  6. 7:57Who wrote the code
  7. 9:04Legacy Code has users
  8. 12:06The simple algorithm
  9. 15:57The Google Test
  10. 17:35Fake Objects
  11. 19:26Inheritance
  12. 27:07Problems
  13. 28:36Singletons
  14. 33:41Static Methods
  15. 39:15Private Methods
  16. 40:41Other Tricks
  17. 45:05Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.