RailsConf 2021 -- Implicit to Explicit: Decoding Ruby's Magical Syntax
Abstract
Does a Rails model or config file seem like a magical syntax? Or can you read any Ruby code and understand it as the interpreter does?
Ruby's implicitness makes it great for readability and DSLs. But that also gives Ruby a "magical" syntax compared to JavaScript.
In this talk, let's convert the implicit to explicit in some familiar Rails code. What was "magic" will become simple, understandable code.
After this talk, you'll see Ruby through a new lens, and your Ruby reading comprehension will improve. As a bonus, I'll share a few Pry tips to demystify any Ruby code.
Resources
Feedback
Closing Remark
Could your team use some help with topics like this and others covered by ShakaCode's blog and open source? We specialize in optimizing Rails applications, especially those with advanced JavaScript frontends, like React. We can also help you optimize your CI processes with lower costs and faster, more reliable tests. Scraping web data and lowering infrastructure costs are two other areas of specialization. Feel free to reach out to ShakaCode's CEO, Justin Gordon, at [email protected] or schedule an appointment to discuss how ShakaCode can help your project!
Justin Gordon
Share this article