The Case Of The Vanished Variable - A Ruby Mystery Story
summary
A debugging story that proves how specifics matter: a grants script awarding 50+30+20 should total 100 but reads back 300 because class variables share across an inheritance chain, a stray reopened Grant sets a class var to 300, and copy‑paste left a hidden overwrite. Investigation uses Ruby and Rails, a prize app StoryGraph with 3M monthly users and 110M requests, and culminates in a Ruby core change — Ruby 3.1 class variable cache — that yields a 6–7% Rails throughput win.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:06Deirdre Bug
- 6:35CHAPTER ONE
- 11:11CHAPTER TWO
- 16:20CHAPTER THREE
- 22:10CHAPTER FOUR
- 26:25CHAPTER FIVE
- 33:01CHAPTER SIX
- 37:05Learn Ruby
- 37:21Improve Ruby
- 37:51Keep Ruby alive
related talks
38mKeynote: The Case Of The Vanished Variable - A Ruby Mystery Story
24mRuby Performance Secrets and How to Uncover Them
28mImproving CVAR performance in Ruby 3.1
29mThe Case of the Missing Method: A Ruby Mystery Story
29mA World Without Assignment
34mThe Case of the Missing Method — A Ruby Mystery Story
40mWeird Ruby
23mDigging Up Code Graves in Ruby
