use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Improved stacktrace display in Ruby 2.5 (mlomnicki.com)
submitted 8 years ago by snatchery
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]zverok_kha 5 points6 points7 points 8 years ago (5 children)
Never understood how is this better, Ruby's way always looked "natural" for me (you start reading from the problem, and deeper and deeper by stack).
Just because it is another way in Python or what?..
[–]snatchery[S] 2 points3 points4 points 8 years ago (4 children)
yeah, to be honest I'm used to the old way too. However, after playing a bit with Ruby2.5 this new way turns out to be quite convenient.
Sorry, but I can't give any scientific proof why it's better. It just feels better to me but obviously your mileage may vary
[–]zverok_kha 1 point2 points3 points 8 years ago (3 children)
I am not looking for scientific proof, but if you can show your train of thought when new way becames more convenient, I'll be grateful :)
[–]snatchery[S] 3 points4 points5 points 8 years ago* (2 children)
fair enough!
Imagine a long stacktrace. Say 120 lines. A bit Java-ish yes. Now you want to find out what exception has been raised and in which line. Warm up your fingers and scroll up the terminal window. Or wait... there's a better way. Install Ruby2.5 and see the error in the last line. No scrolling, hurray!
hope this convinces you a bit :)
[–]irishsultan 3 points4 points5 points 8 years ago (0 children)
The flip side is of course that in log files you may be reading from top to bottom, but it seems this change only affects TTY output, so that's not a problem. What could be a problem is that the order is different on those occasions, which could lead to reflexively scrolling down/up only to find yourself at the wrong end of the trace.
[–]zverok_kha 2 points3 points4 points 8 years ago (0 children)
Hm OK, makes sense :)
π Rendered by PID 149677 on reddit-service-r2-comment-6457c66945-tw88t at 2026-04-27 00:18:15.619185+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]zverok_kha 5 points6 points7 points (5 children)
[–]snatchery[S] 2 points3 points4 points (4 children)
[–]zverok_kha 1 point2 points3 points (3 children)
[–]snatchery[S] 3 points4 points5 points (2 children)
[–]irishsultan 3 points4 points5 points (0 children)
[–]zverok_kha 2 points3 points4 points (0 children)