~/talk

Deep diving: how to explore a new code base

Talkat RubyDay 2015 · on Friday, 2015-11-13· [developer-experience]
links:none on file
slides:none on file

Goal-driven approach to learn MRI Ruby by fixing a real bug: reproduce a Nil proxy behavior in open-uri, trace the execution with TracePoint and the tr_calls gem to produce a call graph, inspect ~100 relevant lines (out of ~3,000) instead of reading everything, run targeted tests via bundle, change a single buggy line, and submit a patch and bug report — whole cycle takes about two hours and the fix lands.

AI-written summary · about

  1. 0:00Introduction to code exploration
  2. 4:40Planning your code dive
  3. 7:51Finding project maps and guides
  4. 13:13Setting up your environment
  5. 16:27Reading code efficiently
  6. 18:59Tracing code execution
  7. 27:19Fixing the bug example
  8. 29:27Choosing good goals
~/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.