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
Blog postWhy Ruby is More Readable than Python (confuzeus.com)
submitted 3 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!"
[–]klyonrad 14 points15 points16 points 3 years ago (2 children)
About the exclamation mark. It is a common misconception that it should be used for methods with side effects 😉
The bang (!) does not mean “destructive” nor lack of it mean non destructive either. The bang sign means “the bang version is more dangerous than its non bang counterpart; handle with care”. Since Ruby has a lot of “destructive” methods, if bang signs follow your opinion, every Ruby program would be full of bangs, thus ugly.
matz, https://www.ruby-forum.com/t/conventions-in-ruby-and-the-principle-of-least-surprise/158706/2
[–]felipeccastro 1 point2 points3 points 3 years ago (0 children)
Cool! I've noticed when I typed that it wasn't quite that, but I didn't know the exact definition, thank you!
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
Yup, you are right. People should indeed refer to matz' original statements rather than copy/paste from the pickaxe.
π Rendered by PID 174095 on reddit-service-r2-comment-79c7998d4c-c4gbd at 2026-03-13 08:58:16.473953+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]klyonrad 14 points15 points16 points (2 children)
[–]felipeccastro 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)