Why PHP is the best language

Source: Internet
Author: User
Tags php compare ruby on rails
I've heard colleagues say that PHP is the best language to ask for answers. (without the intention of a language dispute, aim to have fun)

Reply content:

I've heard colleagues say that PHP is the best language to ask for answers. (without the intention of a language dispute, aim to have fun)

    • Deployment simple

      Many other companies in the industry, want to have a website, they do not have much budget on the site, may just buy a virtual host, I am afraid that the best choice is PHP. There are few virtual hosts that support languages such as Ruby or Python, and ASP requires Windows servers, and only PHP can run on any virtual host.

    • Learning threshold low

      First PHP is a language designed for the WEB (although it is now moving towards a common programming language), learning and using the threshold is very low, build a. PHP file is a Web page, with $_get[' Xxoo '] can get to G The ET parameter. While other common programming languages, native does not support these HTTP protocol-related features, you need to select and learn an HTTP framework to write WEB applications, such as Tornado (Python), Ruby on Rails, and so on.

    • Syntax simple

      PHP starts with a weak type (it's just not that weak, it's not a strong type), and it doesn't have to be about type conversions, and even for a long time in the beginning, it doesn't support object-oriented. PHP can easily access data from the database, while half of the sites are simply reading and writing data from the database.
      because PHP runs as CGI or FastCGI, there is no need to consider memory management issues, but after each request, the memory will be freed. The
      error handling mechanism for PHP is also simple-print error messages on the page if an error occurs. It's also easy to turn off the error prompt.

    • Many heavyweight open-source projects

      such as WordPress (blog), Typecho (blog), Drupal (CMS), MediaWiki (WIKI), DISCUZX (forum), etc., You can say that you want to deploy a site without tossing PHP is the best choice.

    • has been tested by history

      PHP after all, is also the old Web programming language, can tread the pit has been trampled by predecessors, a large number of libraries can be reused, to recruit PHP developers are also very easy, and node. js, Golang And so the new language will encounter technical reserves, talent reserve problems. And Python, Ruby, don't get too excited--although you were invented early, there weren't many people doing Web development.

PS: I don't think PHP is the best Web programming language, just to explain why some people think PHP is the best.

Because it is a language that can easily cause the struggle of programming language, specially to spit groove. I can list some of the information I collected before.
(All collection entrances are here: Https://github.com/coffee-js/languages/wiki)

I do not write PHP so I can not analyze the language function in the end is not good.
According to the history of the programming language, OReilly has a document on the collation: http://cdn.oreillystatic.com/news/graphics/prog_lang_poster.pdf
The general sense is that PHP is inspired or evolved from the scripting language of the Shell environments of SH and Awk.
Similar to Java, to the back of the popular language, there are frequent updates and iterations,

Of course there are more than one of these languages in the world, except for those that are not recorded, you can find a lot from the list below:
Http://en.wikipedia.org/wiki/Lists_of_programming_languages
Http://rosettacode.org/wiki/Category:Programming_Languages
With so many programming languages, it's hard to see where PHP is, not as much as it looks from the history above.

Let's take a different angle. Programming Paradigm: Http://en.wikipedia.org/wiki/Programming_paradigm
The usual online discussion is more easily encountered, such as object-oriented, functional, declarative, event-driven ...
What programming paradigms does PHP support? What are the benefits from these support?

And look at how the programming language Community builds, the developer quality, the module sharing tool, the community document quality,
Offline activities, what are the famous applications, which big companies have picked up the language and for what reasons,
Can new technologies be introduced in other programming languages? What about language Debugging tools?

Then compare the different features of other languages, how does PHP compare?
For example, a language that says that it is a pure function is inherently supportive of parallelism, such as a language that readily writes Macro to change its grammar,
For example, a language claims that its grammar is very beautiful, such as a language that it can directly invoke the Java community ready-made libraries,
For example, a language performance in a dynamic language one of the best, such as a language said that they are very suitable for scientific computing,
For example, a language says it compiles very quickly, such as a language only the regular is very powerful ...

There are already so many languages in the world, where is PHP located?

If PHP is a good language, then TP is the best framework, https://segmentfault.com/q/1010000002443290

A woman: "You can make this forum people noisy, I will date you." ”
A program ape: "PHP is the best language!" ”
A forum fryer, a variety of quarrels.
A woman: "Take you, let's go." ”
A program ape: "Not today, I must convince them that PHP must be the best language." ”

The joke? It's obviously a satire on programmers.

Personally, the programming language does not have the best, only the most suitable.
Say PHP is the best language there are two possibilities, one is self-black, and the other is to put PHP as true love.

PHP, is the first letter combination of pinyin, the programmer is mostly lonely, in the use of PHP will often fantasize about their own in the film, so the language in the programmer-especially the bitter back-end programmer, because the former paragraph can also be cool with JS to the younger sister-in a great popularity, known as the best language.


  
   

我来看楼主头像的 求别黑……

  • 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.