~/talk

Practical Advice for Maintaining and Migrating Working Code

Talkat CppCon 2021 · on Sunday, 2021-10-24· [developer-experience]
links:none on file
slides:none on file

Concrete recipes for getting tests into untested C++ code without huge rewrites: hijack main in the simulator and add Google Test to run desktop builds; write small stub headers and type-only headers to avoid cascading deps; link a dummy timer C implementation to exercise timing-sensitive threads so a backlight test runs instantly instead of waiting an hour; move units into a testable top section and do bottom-up compile/link/run cycles; replace globals with getters and funnel accesses through public APIs so future changes and regressions show up in automated tests.

AI-written summary · about

  1. 0:00Intro
  2. 0:34Legacy Code
  3. 3:53Testing
  4. 10:31Getting Started
  5. 13:28Discovery Testing
  6. 18:44BottomUp Testing
  7. 21:35Dealing with Dependencies
  8. 28:42Scout Rule
  9. 29:05Refactoring
  10. 31:20Getters and Setters
  11. 34:43Callsite Diagnostics
  12. 37:02Use Public Functions
  13. 39:13Ease Cognitive Burden
  14. 42:37Prevent Maintenance Bugs
  15. 43:33File in Files to Keep
  16. 44:12Use Enums
  17. 45:44Martin Fowler Quote
  18. 46:29Conclusion
~/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.