Rails C with Meturbocharge Your Use of the Interactive Console
Offered By: Ruby Central via YouTube
Course Description
Overview
Discover how to supercharge your use of the Rails interactive console in this RailsConf 2022 talk by Sweta Sanghavi. Learn new ways to leverage console features for expert debugging, time-saving tactics, and writing more performant code. Explore the console's underlying mechanics, tracing the history of its libraries and their integration into Rails applications. Gain insights into defining methods and classes within console sessions, understanding IRB's top-level subsessions, and utilizing Abstract Syntax Trees. Discover how to use the console in production and sandbox modes, access production-specific context, and employ fast experimentation techniques. Master essential console skills like clearing the console and using reverse command search to boost your Rails development efficiency.
Syllabus
Intro
The console: the underdog
We can define methods and classes in our console session
IRB uses top-level Subsessions to save and differentiate context
Console Evaluates Ruby
Abstract Syntax Trees
Rippers #sexp method outputs a symbolic expression tree
Readline line editor was abstracted from GNU
Rails semantic scopes can hide complexity
Ruby's Benchmark module outputs time used to execute code
Console in Production
Console in Sandbox Mode
Console allows you access production specific context
Use your console for fast experiments
Clearing the Console
Reverse Command Search
Taught by
Ruby Central
Related Courses
Mentorship in Three ActsRuby Central via YouTube Taylor's Guide to Big Rewrites
Ruby Central via YouTube Upgrading the Ruby Community
Ruby Central via YouTube How We Implemented Internal Salary Transparency - And Why It Matters
Ruby Central via YouTube Mentorship Panel
Ruby Central via YouTube