3 ms·
Ruby is too fancy with weird constructs. This is why I picked Python ~20 years ago. In ruby you can do fancy stuff like 3.times do |i| print i, " "
by theshrike79 3y ago
Ruby is too fancy with weird constructs. This is why I picked Python ~20 years ago.
In ruby you can do fancy stuff like
3.times do |i|
print i, " "
end
But why? Yes you save a few characters but also lose readability for people who aren't Rubyists.
The same in Python is much more readable for people with no experience in the language:
for i in range(5):
print(i, end=" ")
And this is a very simplified example, the complexity in understanding the Magic of Ruby goes up exponentially in real world code.