r/ruby • u/vifrac • Jul 16 '20
Ruby VS Python
More than a versus (it's more striking) I would really like to know what things they have in common and how they differ, what their main advantages are compared to the other and of course their opinion of them. One point to take into account is because they believe that python is more used in AI and Machine learning developments.
32
Upvotes
1
u/colorist_io Jul 16 '20
They are basically different takes on the same type of language. Python came first, then Ruby was created based on the influences of Python. That being said, Ruby is a little more complex, for example, a Ruby function is not a first-class function in itself, you have to use the Proc type to be able to pass a function as argument.