Yak Shaving is Best Shaving
summary
Walk-through of concrete fixes: digs into Active Record internals, uses Chrome console and prototype.js to automate UI tasks, measures Ruby bytecode and VM ops, and benchmarks define_method vs module eval (100k definitions: module eval ~3.6s vs define_method ~0.6s). Replaces dynamic symbols with runtime constants to avoid symbol leaks and reduces per-model memory from ~31k to ~18k. Implements method‑transplanting on ruby 2.0 and inspects instruction sequences to explain boot/runtime tradeoffs.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:57Aaron Patterson
- 3:49What Gets Me out of Bed in the Morning
- 7:49What Is Yak Shaving
- 16:25Runtime and Security
- 16:47Url To Establish Connection
- 25:56Is Module Eval Faster than Define Method
- 31:15Transplanting between Classes








