Ruby vs Python
This cluster centers on debates comparing Ruby and Python, particularly regarding syntax readability, ergonomics, expressiveness, and influences from languages like Perl and Smalltalk.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Ruby is much more straightforward than Python or JS IMO. But Ruby devs tend to love metaprogramming a lot more (IMO) which can seem obtuse.
Ruby has odd, once unique syntax that looks strange to anyone raised on C-like syntax, including js and java. Python is similar, simply removing redundant braces. So no ruby was not better at things most folks care about, i.e. being easy to learn.
Ruby is much closer to Perl than is Python.
I think of Ruby as "The Perl that Python wanted to be"
Short version: "Ruby isn't Python!! wat?!?"
For a lot of people it's the syntax that makes Ruby pleasant. As evidence of this, I refer to other comments claiming languages like Crystal or Elixir are alternative (or better?) versions of Ruby, even though the only thing they have in common is their syntax.
I always said "Python is like writing maths, ruby is like writing english"
Can you discuss some of the linguistic edges that you find in Ruby? Personally, I don't understand the attraction. It would help if you could articulate. I've always struggled to see the real merit that Ruby brought to the table.Usually such explanations are things like "Look at all the esoteric symbols I can pack together to accomplish something on two lines, instead of the readable way that would've used six lines!" IMO, it's better to use a few extra bytes for
"Ruby is annoying"... then suggest Python :)
Love it. Anything that makes Ruby feel more like Smalltalk and less like Python is a win.