Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Once upon a time, in a country far away, there was a developer that wanted to refactor the moon. The moon of course is written in Ruby. At first, this developer was unable to find a way to do it but it was helped by the 3 wise Developers of the country: the MetaProgramming Minister, who helped create the most magic Ruby code in the country. the Object Oriented General, who works on the largest and fastest growing Ruby on Rails Application in the country. the Functional Mathematician, who has written the most elegant and beautiful poems that are functions that solve real life problems. This is a refactoring talk that showcases the flexibility of Ruby as a Programming Language.
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 this talk titled 'The Developer Who Wanted To Refactor The Moon' presented at RubyConf TH 2019 by Enrique Mogollan, the speaker weaves a whimsical narrative about a fictional kingdom where a king is troubled by the unpredictable behavior of the moon, which is written in Ruby. The story explores the journey of a junior developer named Ellie, who is tasked with fixing the moon's code. The key points discussed include: - **Introduction to the Problem:** The king of a modern society is distressed when he cannot see the moon, which behaves erratically due to coding issues. - **Ellie's Investigation:** Initially hesitant but compelled by the king's insistence, Ellie starts her investigation. She analyzes various code components, including the moon's visibility calculation and its dynamic methods. - **Collaboration with Experts:** Ellie seeks help from three wise developers: - **MetaProgramming Minister:** Advises her on tweaking parameters rather than overhauling the code. - **Object Oriented General:** Encourages Ellie to simplify the moon's code by defining a clearer representation of the moon class and its interactions with gravity. - **Functional Mathematician:** Shares insights on integrating time into the moon's orbit calculations. - **Refactoring the Code:** Through collaboration, Ellie learns that the moon's unpredictable nature stems from complex calculations and realizes the need to extract the orbit method into a separate class to enhance code clarity. - **Final Deployment:** After thorough testing and verification from all three mentors, Ellie successfully deploys the code, bringing relief to the king, who appreciates her efforts. The talk emphasizes the flexibility and power of Ruby as a programming language, showcasing how collaborative problem-solving can lead to a well-structured and functional codebase. The story ends with the king's gratitude but leaves the question of lunar cycles unresolved, suggesting that deeper explorations could continue in the future.
Suggest modifications
Cancel