RailsConf 2021 -- Implicit to Explicit: Decoding Ruby's Magical Syntax

railsfavoritesApril 11, 2021Dotby Justin Gordon
magic rails

RailsConf 2021 Session

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

  1. Slides
  2. Justin's ~/.pryc
  3. ShakaCode Forum Pry Articles
  4. Running puma for debugging

Feedback

feedback1 feedback2 feedback3 feedback4 feedback5

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!
Are you looking for a software development partner who can
develop modern, high-performance web apps and sites?
See what we've doneArrow right