Programming language selection (Perl and Python)-a little bit of my experience

Source: Internet
Author: User
Tags learn perl

It is believed that many people who are beginners in programming will have difficulty in language selection. Frankly speaking, I think most people are afraid that their choice of language will be eliminated or not widely used, today I would like to talk about programming language choice of the point.

I want to use Perl and Python as an example, because the two languages are like Java and C + +, and the Perl and Python camps each have their own reasons.

The choice of language and operating system is very similar, some people love to use Linux some people love to use Windows, as for the final analysis of Linux is good or Windows good, no one can tell. There is no doubt that Windows has a huge advantage in everyday work, but Linux is more common in the professional world. Perl is like Windows,perl the ability to handle text so much that you will prefer Perl every time you encounter text-processing-related tasks. At the bottom of the design, however, Perl is no more than Python, and Perl is a linguist who designs Python as a mathematician. This determines that Perl is artistic and Python is logical, that Perl scripts tend to be used only once, and Python is better at reusing (because Perl scripts are often made for themselves, Python is different).

If you simply want to learn a language rather than work, I suggest you learn Perl,perl can make your imagination-perl the principle is to deal with the problem in the simplest way, 100 people with Perl to deal with the same problem will have 100 kinds of programs. If you need Perl or Python as much as I do on a daily basis, I suggest you learn both languages. Perl can learn a little bit more easily, mastering Perl's regular expression (the essence of Perl), small camel book knowledge enough to deal with 99% of the text processing problems, and 1% need to use a multidimensional hash. Python, you need to master the deeper, especially the Python object and the relationship between the variables, master the Python object processing way.

Not to be continued ....

Programming language selection (Perl and Python)-a little bit of my experience

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.