Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Rails C with Meturbocharge Your Use of the Interactive Console

Ruby Central via YouTube

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

Reviews

Start your review of Rails C with Meturbocharge Your Use of the Interactive Console

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.