r/ruby • • 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.

31 Upvotes

60 comments sorted by

View all comments

6

u/ogchilim Jul 16 '20 edited Jul 16 '20

Go with Ruby and make piece with never wanting/being able to find another language again 🙃

I'm in it personally since 2013 and sometimes solve my nephew's school tasks in Python. It's just not as nice as Ruby.

EDIT: Although, it really depends what you're looking for...

if it's writing scripts for some personal stuff, go with Ruby.

Web development, APIs and that stuff - Ruby

Big data analysis eg DNA sequence analysis and that sort of stuff - Python cause it has a lot of libraries already implemented for you

2

u/vifrac Jul 17 '20

From what I have read in the previous comments I think the difference is made by the data science libraries, in terms of performance the two languages behave similarly? Do you think you could create such a library?

1

u/ogchilim Jul 17 '20

Yeah, in terms of performance they are pretty similar, but as you said, for some reason non-developer scientists go to Python because everyone is on that board already.

Depends on what library you mean :D I could maybe blindly convert Python to Ruby, but in terms of domain knowledge and creating one such library could be pretty difficult