How should we choose between Python and Ruby?

Source: Internet
Author: User

How should we choose between Python and Ruby?

I plan to learn a scripting language, but I don't know which one to choose. After searching for information on the Internet, it is difficult to choose between Ruby and Python. So I will list others' comments, choices, and opinions, for reference by yourself and others;

Narrow search range, subjective direction, not necessarily comprehensive, for reference only, don't like it!


Advantages of Python:

Python is a language worth learning;

Ruby is newer than Python, so Python supports more widely and more users;

Python is the preferred scripting language for linux;

Python is implemented in almost all linux and other operating systems;

Python is written in C, at least not more difficult to learn than C;

The Python library is rich, especially the built-in library, which is much better than Ruby;

Many Python libraries are designed to copy UNIX functions, which are too familiar to programmers working in UNIX environments;

The usage of Python on Unix is almost the same as that of C/C ++, which is much better than that of Java;

Python virtual machines are faster than Ruby, and thread support is a real thread;

Python can run on almost any platform, as long as there is a compiler that supports C;

The Python library is rich;

Python documentation is also good now. The most important thing is that Python Tutorial is well written;

Currently, almost all companies allow you to use Python (many Ruby companies cannot use it );

For new projects, we recommend using Python2.6 (I will not use 3.xbecause many libraries do not support 3.x );

Almost all of the places where Perl can be used can be replaced by Python. Learning Python does not require learning perl;


Ruby advantages:

Ruby is relatively new, indicating that it draws on the advantages of other scripting languages and discards its dregs;

Python syntax is not as good as Ruby;

Ruby is the most elegant syntax in script design;

Ruby's document design is much better than Python's, and Python's documents are really not easy to use;

Ruby is a language I recommend so far;

Python does not seem to be suitable for writing common software. It is indeed suitable for writing software that needs to process a large amount of data, so the application scope is relatively narrow;




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.