php versus Python (php vs Python)

Source: Internet
Author: User
Tags php and



Here, I excerpt some articles and discussions about PHP and Python comparisons, so that we can look at the pros and cons of PHP from another perspective.
Also as a scripting language, the bottom layer is also developed by the C language, Python is oo, and now PHP is OO. Python is versatile (available for desktop applications and Web applications), and PHP is specialized in Web applications. When PHP is still plagued with how to integrate into the large program, Python can long be with Java. NET connected ....

* Python's readability, maintainability is better than PHP;
* PHP Development has a backward compatibility problem, Python does not exist;
* PHP entry threshold, Python is relatively high (in fact, Python language is very simple, difficult to have OO thought, php after Oo, face the same problem);
* So far, there are more servers supporting PHP, and less support for Python (the estimated situation will change quickly as hardware costs are reduced).


It has been said that the underlying architecture of PHP is not suitable for OO, so why is Python oo so good?
I've been told that PHP is slow with oo, so why don't people with Python feel slow?

PHP is a good thing to use Oo personally, but after looking at Python, it feels like PHP is now implementing OO more functions and methods than Python, is it good or bad? As a scripting language can be very good to bear it?

Feel php a bit like the same year's C + +, both oo-oriented, but also compatible with C, make times complex. And Python is a bit like the Java of the year, from the beginning is Oo, and based on the scripting language, OO functions and methods to make a considerable simplification, do their own power to do things.

PHP is easy to learn and name, now in order to enterprise applications, if you do like C + + to take into account compatibility, and almost total copy of the Java OO function, will inevitably become complex, and then will be replaced by other languages?

The stone of his mountain can attack Jade. Should we learn about Python and get some inspiration from it?

Now when everyone is optimistic about PHP, combined with a variety of traces of Shaoxing, I seem to feel the wind behind the slightest, ... Hope is only a worry for others.

From the perspective of PHP development, for today's account, I think the best way is to popularize the application of PHP in China, the first occupation of the market, so write a proposal (connection), unfortunately it seems to be stillborn.

==========================================================================
Part One: Introducing Python
What is Python?

(Chinese explanation of Python: http://www.okpython.com/bbs/thread-73-1-1.html)

Python is a programming language this is freely available and then makes solving a computer problem almost as easy as writ ing out one ' s thoughts about the solution. It can be written once, and run on almost any computer without to the "change" program. In here, you can learn more about what Python are, how it's used, and how it compares to other programming Languag Es. Use the "menu below to" Browse the various sections of this article.
Python was-a-created by Guido von Rossum in 1990 and is named after the brit-com Monty Python ' s flying. It has since been developed by a large team of volunteers and are freely available from the Python Software Foundation. The most recent version of Python, 2.5, is released in September, 2006.

Python is now found in many incarnations. At the website of the Python Software Foundation, Python is written in C. Other incarnations exist. A java-based version of Python exists in Jython and could used to work with Java C

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.