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

I don't know if anybody else has looked in, and not to plug Pry again, but there's actually a project called Ruby Jard that combines Pry with Bybug, and it's pretty incredible. You basically can do just like you can binding the IRB in your source code or pry in your source code. You can do a jarred in your source code.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

I don't know if anybody else has looked in, and not to plug Pry again, but there's actually a project called Ruby Jard that combines Pry with Bybug, and it's pretty incredible. You basically can do just like you can binding the IRB in your source code or pry in your source code. You can do a jarred in your source code.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

And when it stops the execution, it has this really beautiful kind of split pane debugging session. where it shows you the current line in context, but also shows you some lower level definitions within that context. And it's pretty wild. I definitely recommend people check that out. I've been using that on a couple projects as well.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

And when it stops the execution, it has this really beautiful kind of split pane debugging session. where it shows you the current line in context, but also shows you some lower level definitions within that context. And it's pretty wild. I definitely recommend people check that out. I've been using that on a couple projects as well.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

But IRB is still my go-to for just testing out random Ruby files.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

But IRB is still my go-to for just testing out random Ruby files.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, that's really great.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, that's really great.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Sure. Yeah. Let's see from, from pry itself. I'm not sure. I do know that IRB itself has introduced some tracing mechanisms and measure utility to make it easy to trace the execution of specific method calls while you're going through, as well as processing time.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Sure. Yeah. Let's see from, from pry itself. I'm not sure. I do know that IRB itself has introduced some tracing mechanisms and measure utility to make it easy to trace the execution of specific method calls while you're going through, as well as processing time.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

So I actually do that for a lot of just quick performance testing of, will this array method lookup work faster than this one in this context? You know, just turn on the measuring processor and just check how fast it runs with each case.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

So I actually do that for a lot of just quick performance testing of, will this array method lookup work faster than this one in this context? You know, just turn on the measuring processor and just check how fast it runs with each case.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, I believe so.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, I believe so.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, and it's line-by-line measuring, too. So whatever you enter, every single thing will show you the processing time for it, which is really nice.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Yeah, and it's line-by-line measuring, too. So whatever you enter, every single thing will show you the processing time for it, which is really nice.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

That's actually in 2.7. So if you're already on 2.7, you should have colors.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

That's actually in 2.7. So if you're already on 2.7, you should have colors.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Okay. But one other thing I will note, at least with Ruby 3, actually it's 2.7, was the inline documentation. So if you just double tab while you're on a particular method name, it'll give you the documentation and the context, kind of like a man page. Oh, nice. And it does that through our docs.

Ruby Rogues
The Hidden Gems of Ruby - RUBY 651

Okay. But one other thing I will note, at least with Ruby 3, actually it's 2.7, was the inline documentation. So if you just double tab while you're on a particular method name, it'll give you the documentation and the context, kind of like a man page. Oh, nice. And it does that through our docs.