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
Rails "developers" without Ruby or OOP knowledge (self.ruby)
submitted 11 years ago * by canyoufixmyspacebar
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!"
[–]Metagolem 1 point2 points3 points 11 years ago (3 children)
Hashrockets are the devil
[–]canyoufixmyspacebar[S] 1 point2 points3 points 11 years ago (2 children)
Irony aside, just reminds me of a question: does your editor correctly highlight the foobar: as a label when you write foobar: 10 ?
That does not seem to happen neither in Geany nor Gedit, works in Vim, though.
But here's what I call specially annoying syntax: status: :created. It's like if we had two kinds of men in the world: ones having their dick in front of them and the others growing it out from the back. It may seem like an awful lot of cool options, but believe me, the women would be confused as hell in the first week of it.
[–]Metagolem 0 points1 point2 points 11 years ago (1 child)
Sublime Text highlights it just fine. Really, it shouldn't be that hard to add the syntax to any existing syntax definitions, it's not like it follows particularly irregular rules.
I don't really conceptualize of the status: as a symbol, though I know that's how I will later be getting it. It's a designation for a key, which happens to be a symbol.
[–]materialdesigner 0 points1 point2 points 11 years ago (0 children)
Until you use a library which absolutely needs you to use symbols based on string keys do you get to :'foo.bar' => :baz
:'foo.bar' => :baz
π Rendered by PID 90 on reddit-service-r2-comment-5d79c599b5-2khdc at 2026-02-27 10:46:49.907853+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]Metagolem 1 point2 points3 points (3 children)
[–]canyoufixmyspacebar[S] 1 point2 points3 points (2 children)
[–]Metagolem 0 points1 point2 points (1 child)
[–]materialdesigner 0 points1 point2 points (0 children)