~/talk

Deleting Code Is Hard And You Should Do It

Talkat PyOhio 2012 · 2012-07-28..07-29· [developer-experience]
slides:none on file

Argues for aggressive deletion of dead code and gives concrete tactics: use flake8 / pyflakes and act-grep to find unused imports, run coverage.py against real HTTP logs to catch rarely exercised paths, run a one‑liner import script to expose Django import cycles, and use git bisect to narrow regressions. Describes removing custom Java/C/C++ and switching to NLTK, cutting a large legacy subsystem, keeping lines steady while shipping features, and instituting weekly “trash day” to enforce deletions.

AI-written summary · about

  1. 0:00Intro
  2. 4:00Bad Reasons Not to Delete
  3. 5:11It might be used somewhere
  4. 9:08It is used ... in Unit Tests
  5. 10:15Dynamic Languages
  6. 12:31Fewer False Positives
  7. 15:59Test Your Imports
  8. 19:12I might need it later
  9. 23:49Build a Culture That Deletes
  10. 25:17Source Lines of Code
  11. 28:40Write Less Code
  12. 30:30Conway's Game of Life
  13. 32:05Simpler Game of Life
~/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.