~/talk

Dead Code Shouldn't Exist

Talkat JSHeroes 2026 · 2026-05-14..05-15· [developer-experience, testing]
slides:none on file

Concrete result: running Knip across the Sentry frontend removes about 28k lines — roughly 3% of the codebase — by finding unused files, exports, and deps. The team integrates Knip into CI and an optional pre-push hook, uses production mode to ignore test-only usages, enables editor hints via the language server, and enables autofix; runtime drops from ~6s to ~4s in the large repo. The cleanup lands and keeps dead code out.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00Sentry’s engineering mission
  3. 4:30Cost of unused code
  4. 7:22TypeScript misses exports
  5. 9:49Introducing KNIP
  6. 13:22Live demo with KNIP
  7. 18:23Production and test dead code
  8. 21:14KNIP limitations
  9. 25:50Dynamic imports edge cases
  10. 27:58Results and impact
  11. 29:01Start using KNIP
~/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.