News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by nitrogen on Friday November 19, 2021 @06:17AM (#29276054)
And don't forget the option of just calling into pry at the line in question and typing ls and show-doc. Also ripgrep is incredibly useful for navigating new codebases.
Re:Where is Ruby Headed in 2021? by sanderjd on Friday November 19, 2021 @02:53PM (#29281500)
Yes, grep + debugger / pry were how I solved this when I was still writing lots of Ruby. I find it much more productive to be able to get these answers statically, but I was too strong when I said "impossible"; there's always some way to find the right code, or the VM wouldn't be able to run it :)
Re:Where is Ruby Headed in 2021? by Lio on Friday November 19, 2021 @10:36AM (#29278236)
Yes, you’re quite right! Thank you again, I must remember to use pry more.

With ruby 3.1 I think we’re getting a new default debug.rb gem.

It will be interesting to see if pry or the beat ideas from pry can be integrated with that.