Perl, PHP, Python, and Ruby are easier to learn for beginners in Linux O & M? -Php Tutorial

Source: Internet
Author: User
Poor foundation. I just got started with Linux O & M. I hope I can learn about a poor Linux O & M Foundation. I just got started with Linux O & M. I hope I can learn a message for Linux O & M: perl too old, the written code seems to be hard-working, and now it has basically stopped evolution. although it has been around for many years, php is not suitable for O & M, in the end, there will be many people who support python, probably because of the first advantage of python, but ruby has one advantage: the ability of a line of code to solve the problem (which inherits perl). When I first learned perl, I was surprised by his perl-ne 'chomp; print; 'File is concise and does not need to be written to variables (you can only remember this sentence for many years). ruby inherits this point very well: ruby-ne 'print $ _. chomp 'file, and commands such as awk BEGIN/END can be completely replaced by awk, sed, grep, and so on. Here are some examples: Ruby one-liners Because python must be indented, it is obviously inferior to ruby in terms of a line of code's ability to solve problems, so we recommend Ruby. Ruby, you can refer to the book I wrote: Chef-GitBook There are currently three common O & M languages: Shell Scripts, Perl, and Python. Let alone shell (no matter which one you choose last, shell won't be able to get around, even if you are not proficient at least, you should be proficient ). In Perl and Python, the current choice is of course the first in Python, unless you have a lot of Perl history to be maintained. PHP and Ruby are mostly used in WEB development and are not used in the O & M System.

Compared with PHP and Ruby, Perl and Python have their own advantages mainly in the existing releases of Linux. they have an extremely rich third-party library for O & M and a large amount of practical experience for reference.

The advantage of Python over Perl is that it is simple, easy to learn, readable, and highly efficient in Code writing. the cooperation between the Code review and the team is pleasant.

Python has a poor running efficiency, but in O & M scenarios, high development efficiency is far more important than a slightly slower running efficiency. Ruby. The syntax is elegant, consistent, and easy to get started, and the linux O & M mentioned by the subject does not require high execution efficiency.
I personally think that the python syntax is not as elegant as ruby, and it is more difficult to get started than ruby.
There are many open-source python libraries, but there is no such thing. Ruby and python can both use Perl. who knows it? it's better than one line. What other products can fight? (personal experience)
Ruby is concise and elegant in syntax, but the idea that the agreement is greater than the "freedom" of configuration requires the learner to recognize and adapt;
Python data structure processing is convenient, syntax is refined, and configuration is easy to understand;
Php has little contact with each other and feels a bit mixed with programming ideas;
Perl is not interested in accessing... If you don't know php, there are three remaining ones. learning difficulty: python> ruby> perl
Practical O & M: perl> ruby/python needs to know many big-name companies in the financial industry, it's hard to use a lantern to trick people into maintaining their legacy perl scripts.

But what does it do? I know a bunch of flaws in ruby, but I will still choose ruby. Only ruby's design works normally in these cases... I am using php for O & M, and I am not doing anything. Php + shell various cli and various daemon. The only bad thing is that there is no open source software. In addition, B cannot keep up with py. It is difficult to be proficient.
I think you can select a suitable language based on your urgent needs, and gradually understand it. Then, based on some documents or books "xx days proficient in xx", we can truly understand the language features.
When you are really proficient in a language, you can do some simple work in other languages, you can look at "quick start xxx" to work.


Because, in essence, the basic and common features of many programming languages can be interconnected, and only their features are missing.

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.