~/talk

How to Delete Code

Talkat ACCU 2024 · 2024-04-17..04-20· [developer-experience]
links:none on file
slides:none on file

Practical rules for finding and removing dead C++: use git blame and grep to spot stale files, run cppcheck and CI builds to find unreachable code, and experiment in compiler explorer or unit-test harnesses before touching trunk. Prefer small, reversible edits and atomic commits so reverts are trivial. One example shows ~400 changes over 10 years vs 35 changes over 18 years; at one contract far more code gets deleted than written as messy layers are peeled away.

AI-written summary · about

  1. 0:00Introduction
  2. 5:59Dead code exists why
  3. 15:35Dead code accumulation causes
  4. 27:43Challenges in deleting code
  5. 42:58Identifying dead code techniques
  6. 55:30Safe code to delete types
  7. 1:01:16Cleaning code and comments
  8. 1:11:18Best times to delete code
  9. 1:14:17Integrating deletions how
  10. 1:17:12Conclusions and call to action
~/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.