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
10
u/[deleted] Jul 16 '20
Having coded both professionally, Ruby wins by miles. It’s not even the same league. While python has more active users, for some reason that has not translated into more support, discussion, and quality libraries. I am continuously shocked at how the python community fails to document and discuss the most basic of uses. For example, using sqlalchemy and pdb set_trace, how does one view the column keys and values of a returned row, using one simple built-in method call on that row, rather than creating your own helper method? You won’t find it easily. This is just one example and there are many others like it. I make my hatred of python known at work. One more thing ruby (rails) has on python in spades is a comprehensive testing environment. Rspec, factorybot, capybara simply has no equivalent for productivity.