📜 ⬆️ ⬇️

Python vs Ruby

This flame-forming article is designed to gather relevant information in one place on the benefits of Python over Ruby and Ruby over Python. Based on my own many years of experience in using both languages, I tried to limit the comparison to languages ​​as such and their standard libraries - comparing web frameworks, development environments and available libraries are not included in the article, as many of them are broken here without me.


Let's start with Python, because alphabetically




Got the impression that Python is better? We look from Ruby



')

findings


Check the list and select the language for the task. Ruby is traditionally better at text processing, DSL, automating the shell (looking at rake and envying). Python - multithreading, GUI, binding to everything that moves, the best documentation and support by the industry. When using Ruby, if possible, it is better to use version 1.9.x - there are too many changes for the better in comparison with 1.8.x. Questions, comments, flame? Welcome to the comments.

PS Anticipating comments like "and I like <comparison item> more like <language> because <reason>". The taste and color of the markers are different, I tell from the bell tower of my practical experience and my tasks, which, moreover, are far from site building. The article describes the differences that I have set up as “strong” and “weak” sides solely in my own subjective, albeit professional, view. I hope the article will become a kind of basis, based on which developers can choose the language for their tasks a little more consciously.

PPS Anticipating comments like "in <comparison item> code in <language> is written incorrectly - this is done differently." Examples are exaggerated and compare the same language capabilities, without taking into account the best practices of their application. For the sole purpose of preventing the article from swelling. I want to be compact.

Source: https://habr.com/ru/post/137497/


All Articles