Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyConf 2018 - The Case of the Missing Method — A Ruby Mystery Story by Nadia Odunayo Business is slow for Ruby Private Investigator, Deirdre Bug. She’s on the verge of switching industry when she gets a call from an anxious young man. "Some class methods have gone missing," he tells her breathlessly. "I need your help." Deirdre takes the case and begins exploring Ruby objects behind the scenes. Though she thinks she's on familiar ground — Ruby's object model, method lookup — she's about to discover that she really has no clue.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk "The Case of the Missing Method — A Ruby Mystery Story" presented at RubyConf 2018 by Nadia Odunayo, the speaker narrates an engaging story of Deirdre Bug, a Ruby Private Investigator tackling a case of missing class methods. The backdrop involves Mike, a junior Ruby developer, who is anxious about some discrepancies in his friend Jenny's notes, which impact their chances at a prestigious interview. **Key Points:** - **Introduction to the Characters**: - Deirdre Bug is a private investigator with a focus on Ruby programming language. - Mike, a junior developer, and Jenny, his best friend, are preparing for an interview at the Ruby Institute of Professionals. - **Investigation Begins**: - Mike discovers that Jenny’s notes on method lookup were flawed, leading him to seek Deirdre's help to clarify the correct information. - **Exploring Ruby's Object Model**: - Deirdre examines the notes, which detail Ruby objects, classes, and how method lookup operates. She finds a code snippet demonstrating a class and explores relationships between instances and classes. - **Researching the Method Lookup**: - Deirdre develops a hypothesis that the missing method lies within the class's ancestry tree. She creates a method to search the ancestry for the missing method, leading her down a rabbit hole of Ruby's objects. - **Discovery of Singleton Classes**: - During her exploration, she learns about singleton classes and how methods can reside within an object's unique singleton, which could explain the missing method. - **Deirdre's Resolution**: - After much investigation, Deirdre successfully locates the edible method within the Cake class’s singleton class, solving the mystery. - **Encountering Jenny's Deception**: - Mike confronts disappointment when he realizes Jenny intentionally misled him about the notes, revealing her as the true antagonist in the story. - **Understanding DSLs**: - Deirdre learns from her friend Ellen about domain-specific languages (DSLs) and how they utilize singleton classes effectively in programming. **Conclusions & Takeaways**: - Understanding singleton classes is critical for Ruby developers as they underpin method definitions and class behaviors. - The investigation illustrates the importance of object-oriented principles in Ruby, especially how class methods are actually instance methods stored in a class's singleton class. - The story emphasizes continuous learning for developers and highlights the community aspect of sharing knowledge in programming.
Suggest modifications
Cancel