Python and Ruby, what's the choice?

Source: Internet
Author: User
Tags learn perl

intends to learn a scripting language, but do not know which to choose, the Internet to find information, finally difficult to choose in Ruby and Python, so list other people's evaluation, choice, opinion, etc. for themselves and others reference;

In a narrow range of search, with a subjective direction, not necessarily comprehensive, for reference only, do not like to spray!


Advantages of Python:

Python is a scripting language worth learning;

Ruby is newer than Python, so Python is more widely supported and more user-specific;

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;

Python's library is rich, especially its own library is rich, which is much stronger than Ruby;

Python Many libraries are designed to copy UNIX functions, which are too familiar to programmers working in a UNIX environment.

Python's usage on UNIX is almost the same as that of C + +, which is much better than Java.

Python's virtual machine is faster than Ruby, and thread support is a real thread;

Python can run on almost any platform, as long as there are compilers that support C;

Python's library is very rich;

Python's documentation now feels good, and the most important thing is that Python's tutorial is really good to write.

Now the company almost always allows you to use Python (many companies Ruby is not available);

New project, recommended to use Python2.6 (I will not use 3.x, because many libraries do not support 3.x);

Where perl can be used, almost all can be replaced with python, learning Python can not learn perl;


Benefits of Ruby:

Ruby is relatively new, explaining the advantages of other scripting languages, while discarding its dross;

Python's syntax is not as good as Ruby's;

Ruby is the most elegant syntax in script design;

Ruby's document design is much stronger than Python's, and Python's documentation is really not very useful;

Ruby is a language I recommend so far;

Python does not seem to be suitable for writing common software, and he is certainly more suited to writing software that needs to handle large amounts of data, so the scope of application is narrower;




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.