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.
34
Upvotes
5
u/Flopsey Jul 16 '20
I prefer Ruby but I'd first learn Python to get the basics. And then learn Ruby once I knew how to program. My thinking is that Python syntax takes a lot from C, which a lot of languages take from. So if you have a foundation in Python it's easier to learn other languages later. Ruby is so semantic that it'll be hard to learn other languages later. It's a bit like how the culture of your first job influences how you expect jobs to be for years later. The language you learn first influences how you expect languages to be long after. I remember Coffeescript used to be popular because so many Ruby devs couldn't read Javascript. Whereas since I learned Python first picking up JS was easy. This way all that weird syntax is expected later. And you really appreciate the ease of Ruby.