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;