~/talk

Deletion Driven Development: Code to delete code!

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby, testing]
slides:none on file

Builds a static analyzer that parses Ruby with RubyParser (racc) into s-expressions, walks them with a SexpProcessor-derived visitor, records method definitions and calls, and reports potentially dead methods; handles edge cases like send/public_send, attr_accessor and attribute-assignment nodes, adds Rails-DSL hooks, and counts single-call methods. The result is the Debride-style tool used on ManageIQ that finds deletions reliably but requires manual verification and more edge-case handling.

AI-written summary · about

  1. 0:00Start
  2. 5:47Part One Parsing the Code
  3. 6:34Context-Free Grammar
  4. 11:10Ruby Parser
  5. 13:24Main Method
  6. 15:43Method Tracking Processor
  7. 17:29Helpers
  8. 18:43Part Three Building the Dead Method Finder
  9. 24:09Adding Edge Cases
  10. 24:50Rails Methods
  11. 29:59Old Code Finder
  12. 30:42Parting Message
~/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.