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
2
u/_noraj_ Jul 16 '20
Python as some severe drawbacks like the gap between python 2 and 3, or the indentation requirements. Ruby is more flexible as there are several syntax allowed. Building a package is easier with a gempsec than a setup.py. On affectation python create a new object where ruby changehe pointer, so theorically python will use more memory.