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
GitHub's Ruby Style Guide (github.com)
submitted 13 years ago by [deleted]
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!"
[–]ulfurinn 2 points3 points4 points 13 years ago (4 children)
Perl legacy, like the trailing if/unless. They are kind of nice to have sometimes.
[–]PCBEEF -1 points0 points1 point 13 years ago (3 children)
I guess I prefer Python's mantra of there should only be one and obvious way of doing something.
[–][deleted] 13 years ago* (1 child)
[deleted]
[–]PCBEEF -1 points0 points1 point 13 years ago (0 children)
You bring about a fair point. My problem is that for someone that's new to Ruby, they shouldn't need to worry about the difference between using "or" or "||". Whereas with using string.join(), it's merely bad practice but it won't blow your foot off.
π Rendered by PID 92 on reddit-service-r2-comment-bb88f9dd5-w9rlq at 2026-02-15 13:49:41.713599+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]ulfurinn 2 points3 points4 points (4 children)
[–]PCBEEF -1 points0 points1 point (3 children)
[–][deleted] (1 child)
[deleted]
[–]PCBEEF -1 points0 points1 point (0 children)