Thoughts
So I posted a question on HN about Python vs Ruby and all these people get in the comments telling me that Python is more readable.
And like. You’re just wrong.
Flatten a list, Ruby, `l.flatten`, Python, `[item for sublist in l for item in sublist]`. I did the “next Sunday” example the other day: https://thoughts.learnerpages.com/?show=31641f17-35a2-4fb6-b1e6-fafe01723a81
They don’t mean “more readable” they mean ‘easier to understand what’s going on because it has fewer features and is less powerful.’ Which is a weird argument to make because it’s difficult to understand Ruby only in contrast to other languages. Like someone used optional parens on function calls as an example of something that was confusing, but I don’t think a new-programmer would be confused by that. I think they would go “oh it’s optional.” I think the people confused by that are people who have written other languages where there’s a difference between `.foo` and `.foo()`.
Like it honestly doesn’t bother me because these people clearly just don’t understand Ruby at all. Like this guy was like, ‘Ruby doesn’t have any features Python doesn’t.’ And I can’t write 50 lines of Ruby without calling a function by symbol, which I straight up don’t think you can do in Python.