Why is PHP the best language in the world, then you say, fortunately where?

Source: Internet
Author: User
Why is PHP the best language in the world, then you say, fortunately where?

This issue has been closed due to:

Reply content:

Why is PHP the best language in the world, then you say, fortunately where?

"Why is it that the programmer doesn't say C + +/Python/haskell or any other language is the best in a joke and that PHP is the best?" It's not funny to say "best" in any other language.

Any programmer with more than two non-PHP programming languages and some common sense will instinctively realize the problem of PHP, there was a summary of the article in this: Php:a fractal of Bad Design/fuzzy notepad (translated version is visible: five major damage, Full parsing of PHP's bad design, but bad translation

Lichen PHP's rundown, it's far-reaching. If you have no time to read the long article, then I will tell you a simple example to illustrate how strange php: PHP's core function name is very inconsistent, there are "strptime" such C function name, there are "nl2br" such shorthand, but also have " htmlspecialchars"such a long name.

It was later discovered that this inconsistency was not accidental, but that when PHP was a small language with less than 100 functions, its authors decided to use the number of characters in the function name-as a function hash (!). )。 As a result of this foolish decision, PHP's function name length should be as long as possible to rank, evenly distributed, the impact has been continued today [0].
There are even good people who will be in the above article:
You pull out the hammer, but to your dismay, it has the claw part on both sides.
This sentence seriously, made a PHP hammer:

Imagine you walk into the brewery of the Hardware Guild and see the various tools on the wall hanging from nails to electric screwdrivers as displays, and you're looking at one of those hammers and saying, "Ah, this is the best tool", what do you think the people in the pub are going to react to?

[0] See http://news.php.net/php.internals/70691

Excerpted from http://www.zhihu.com/question/26498147

Who told you PHP is the best language in the world?

Wrote a few years of PHP, saying it benefits:

    • Simple, easy to learn, less concept, no multithreading ah, asynchronous and so on.
    • Help manuals are handy, and the PHP documentation is the best manual I've ever used. Convenient inquiry, Detailed introduction.
    • Arrays are cool to use.
    • Simple deployment. You just have to drop a file when you're done updating.
  • 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.