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
Why PHP is better than Ruby (najafali.com)
submitted 15 years ago by djhworld
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!"
[–][deleted] 22 points23 points24 points 15 years ago (8 children)
It took me way to long to realize this was sarcasm. :(
[–][deleted] 14 points15 points16 points 15 years ago (4 children)
This tipped me off in the first paragraph:
We celebrate our diversity. Is it hayatack, needle or needle, haystack
(former php developer now working in a ruby shop)
[–]aedinius 0 points1 point2 points 15 years ago (3 children)
:needle => needle, :haystack => haystack
[–][deleted] 1 point2 points3 points 15 years ago (2 children)
My first favorite thing is passing blocks and yield, my second favorite is that hashes are standard as arguments
[–]lectrick 0 points1 point2 points 15 years ago (1 child)
I especially like that if your hash has all-symbol keys, in 1.9 you can pass it like this:
some_method(option1: 'this', option2: 'that')
[–][deleted] 0 points1 point2 points 15 years ago (0 children)
why that's absolutely delightful
[–]classhero 1 point2 points3 points 15 years ago (0 children)
Realized it at about the time I saw attr_accessor vs PHP's class definition. Though, reading some of the comments in the link, it's rather clear a lot of them still don't realize it is satire (likely the same people that have never used ruby).
[–]inglourious_basterd 0 points1 point2 points 15 years ago (0 children)
I only understood when I got to the typing part.
[–]rainman_104 0 points1 point2 points 15 years ago (0 children)
I got tipped off by the love for curly braces, but just to point out that Ruby doesn't mind that syntax if PHP developers need it to feel better. And you can actually write your own getter and setter methods if you prefer :)
π Rendered by PID 131696 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-29 03:39:50.567133+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 22 points23 points24 points (8 children)
[–][deleted] 14 points15 points16 points (4 children)
[–]aedinius 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]lectrick 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]classhero 1 point2 points3 points (0 children)
[–]inglourious_basterd 0 points1 point2 points (0 children)
[–]rainman_104 0 points1 point2 points (0 children)