Deep diving: how to explore a new code base
summary
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
chapters (8)
- 0:00Introduction to code exploration
- 4:40Planning your code dive
- 7:51Finding project maps and guides
- 13:13Setting up your environment
- 16:27Reading code efficiently
- 18:59Tracing code execution
- 27:19Fixing the bug example
- 29:27Choosing good goals
related talks
26mDeep Diving: How to Explore a New Code Base
42mDissecting Ruby with Ruby
38mSpelunking in Ruby
01h 22mBreaking Down the Barrier: Demystifying Contributing to Rails
37mPrying Open The Black Box
34mCode Spelunking: teach yourself how Rails works
39mPerusing the Rails Source Code - A Beginners Guide
30mCome on in! Making yourself at home in a new codebase
