Kill your Dead Code with Fire!
summary
Hank is an open‑source tool that detects and removes oxbow and dead code across large Erlang projects by running as a rebar3 plugin and analyzing ASTs; it flags unused macros, record fields, config keys and consistently ignored function arguments, is extensible with custom rules, and aims to be never wrong (may miss cases but should not produce false positives). Early runs find surprising scale: 1,000+ unused macros and 200+ unused record fields in OTP, plus seven in a carefully maintained repo; configure ignores in rebar.config or per‑module.
AI-written summary · about
chapters (9)
- 0:0002:19 - Introduction
- 2:2006:02 - Dead Code : A Taxonomy
- 6:0311:59 - Oxbow Code : An Origin Story
- 12:0014:28 - Less Code is Easier to Maintain
- 14:2918:28 - Hank! Kill it with Fire
- 18:2920:09 - Configuration
- 20:1021:32 - Accuracy
- 21:3324:02 - Results
- 24:0335:03 - QnA
related talks
20mDeadcode – a Tool to Find and Fix Unused (Dead) Python Code
30mDead Code Shouldn't Exist
37mWe Hate Code - The !joy of Maintaining Dead Code
45mRemoving Dead Code from a Project: A Practical Guide
38mDeleting Code Is Hard And You Should Do It
33mBeware the Dreaded Dead End!!
01h 22mHow to Delete Code
27mThe art of deleting code
