📜 ⬆️ ⬇️

Ruby (n) vs Python: the most important questions and answers


Python or Ruby is one of the hottest topics in the programming world. Ahead of him are only “emacs or vim” and “pro-skub or anti-skub” in importance and complexity. Today we will study the difference and answer the questions, and also objectively and finally decide what is best.


What is Python?


Python is a large snake that lives in the southeastern regions of the planet. They are not poisonous and neutralize enemies mainly by strangulation. Many of the surviving species are endangered.


What is Ruby (n)?


Ruby (ruby) is a bright, red gem. It is usually attributed to a group of four gems, along with emeralds, diamonds and sapphires. There is a big controversy: rubies - these are red sapphires or sapphires - these are blue rubies.


What is the similarity?


To a person unfamiliar with the subject, a ruby ​​and a python may seem identical:



What are the differences?


Despite a bunch of similar features, there are significant differences:



What are some important examples?



What's better?


Depends on the situation!!!


You promised an objective, final answer!


Seriously. Depends on the situation. What are you trying to do?



You can see that in about half of the cases, you can make a choice in favor of ruby, and in the other half of cases - in favor of python. Most likely, there are a few smaller cases that break the beautiful 1: 1 ratio, but they are niche and esoteric.


What programming language to use in your startup?


PHP


')

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


All Articles