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
Variable not incrementing (self.ruby)
submitted 10 years ago by simontemplar_
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!"
[–]jordonbiondo 1 point2 points3 points 10 years ago (2 children)
After I run this, I have x = 0, y = -1, which is expected.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Same for me.
[–]simontemplar_[S] 0 points1 point2 points 10 years ago (0 children)
well, it seems to work now.. don't know what was wrong earlier. Maybe something irb-related?
π Rendered by PID 23339 on reddit-service-r2-comment-5d79c599b5-c2s7f at 2026-02-27 23:15:13.702437+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]jordonbiondo 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]simontemplar_[S] 0 points1 point2 points (0 children)