Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Blog Pricing

Valentino Stoll

๐Ÿ‘ค Speaker
700 total appearances

Appearances Over Time

Podcast Appearances

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

to say, hey, any changes made to the database, you know, make sure they're attributed to whoever the current user is. So we implemented that and then allowed, you know, full auditing for whatever user was logged into the system, you know, with just a simple little Rails customization. Gotcha.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

to say, hey, any changes made to the database, you know, make sure they're attributed to whoever the current user is. So we implemented that and then allowed, you know, full auditing for whatever user was logged into the system, you know, with just a simple little Rails customization. Gotcha.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, more for accountability than anything else. You say, hey, what were you doing during this change? Sometimes you just need to audit the specific scenario of a change so that you can go and make sure it didn't affect anything else as a side effect.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, more for accountability than anything else. You say, hey, what were you doing during this change? Sometimes you just need to audit the specific scenario of a change so that you can go and make sure it didn't affect anything else as a side effect.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Short answer, no. I mean, there's a kind of a discrepancy here. And it's two worlds colliding where somebody made a better IRB at one point. And now kind of the features of Pry are sneaking into the native Ruby IRB. Which is awesome. Yeah. So, I mean, they're very... They're completely different things at this point.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Short answer, no. I mean, there's a kind of a discrepancy here. And it's two worlds colliding where somebody made a better IRB at one point. And now kind of the features of Pry are sneaking into the native Ruby IRB. Which is awesome. Yeah. So, I mean, they're very... They're completely different things at this point.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yes. Rails console is wrapped on IRB.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yes. Rails console is wrapped on IRB.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Gotcha. Yeah. So as far as like what Rails is doing, it's probably just an elaborate IRB RC thing. Because anything you have in your IRB-C will be in the context of whatever ends up being the IRB session you're in. So when you do Rails C, I imagine it just loads the application and makes a few things available to the terminal, like the reload command or something like that.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Gotcha. Yeah. So as far as like what Rails is doing, it's probably just an elaborate IRB RC thing. Because anything you have in your IRB-C will be in the context of whatever ends up being the IRB session you're in. So when you do Rails C, I imagine it just loads the application and makes a few things available to the terminal, like the reload command or something like that.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, that makes sense.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, that makes sense.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

That's kind of the value of the IRB-C2 is like you can define methods in there that do whatever you want. So, you know, Rails has the customizations with a bunch of methods that it'll inject into the session and, you know, give you that available. So I have some myself, which will give me me. as an example.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

That's kind of the value of the IRB-C2 is like you can define methods in there that do whatever you want. So, you know, Rails has the customizations with a bunch of methods that it'll inject into the session and, you know, give you that available. So I have some myself, which will give me me. as an example.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

So then I have a who am I, basically, that gives you access to your current user's name and a bunch of related ones to that.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

So then I have a who am I, basically, that gives you access to your current user's name and a bunch of related ones to that.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

I mean, what you could do is you can make your own input method that then remaps all of the characters. So as you're typing, it'll output a different character. Yeah, yeah.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

I mean, what you could do is you can make your own input method that then remaps all of the characters. So as you're typing, it'll output a different character. Yeah, yeah.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Not technically the IRBRC. We have a custom initializer for Rails itself that will just make some modifications to the Rails console itself and then start up kind of call super on it.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Not technically the IRBRC. We have a custom initializer for Rails itself that will just make some modifications to the Rails console itself and then start up kind of call super on it.