Hacker News new | ask | show | jobs
by injekt 5529 days ago
It's actually built for this purpose. It's not supposed to be anything like ripl is. I'd also recommend using that as a lightweight IRB alternative. But Pry isn't supposed to be that.

Also, Pry is currently weighing in at less than 2 thousand lines. It's not going the way IRB is going, but it is indeed very feature full, and probably will contain stuff you may not use every day. It's also easy to extend, so moving commands out of core and abstracting them into their own external libraries would be simple, would we ever want/need to slim the library.

1 comments

$ wc -l lib/pry/*.rb | tail -1 -> 2801 total

I guess you're referring to lines of code. But if we're talking about that then you're actually pretty close to the original irb in size.

"It's also easy to extend, so moving commands out of core and abstracting them into their own external libraries would be simple"

Moving code around is simple yet pry's current extendability and abstraction is all of one plugin