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.

📉 Falling 0.3x Programming Languages
3,466
Comments
20
Years Active
5
Top Authors
#2335
Topic ID

Activity Over Time

2007
30
2008
125
2009
157
2010
225
2011
211
2012
239
2013
257
2014
161
2015
143
2016
142
2017
180
2018
123
2019
185
2020
199
2021
195
2022
262
2023
301
2024
149
2025
177
2026
5

Keywords

en.wiki OP IMO JS COBOL wikipedia.org AppleScript FP YES SmallTalk ruby python perl syntax influenced code python ruby languages java readable

Sample Comments

Glyptodon Nov 13, 2023 View on HN

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.

mixmastamyk Mar 3, 2023 View on HN

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.

cutler Jul 21, 2021 View on HN

Ruby is much closer to Perl than is Python.

thanatos519 Nov 18, 2022 View on HN

I think of Ruby as "The Perl that Python wanted to be"

judofyr Jan 17, 2013 View on HN

Short version: "Ruby isn't Python!! wat?!?"

Buttons840 Apr 26, 2022 View on HN

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.

rahoulb Jul 7, 2023 View on HN

I always said "Python is like writing maths, ruby is like writing english"

cookiecaper Mar 25, 2017 View on HN

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

desireco42 Sep 12, 2017 View on HN

"Ruby is annoying"... then suggest Python :)

phendrenad2 Nov 24, 2023 View on HN

Love it. Anything that makes Ruby feel more like Smalltalk and less like Python is a win.