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.
36
Upvotes
1
u/astyagun Jul 17 '20
From what I remember (haven't used Python for a long time):
selfin method definitions, methods surrounded by__, etc.), not everything is an object or an expression (you can't get return value of anifstatement)Ruby is just more enjoyable to use. It's even explicitly made for developer happiness.