Trying Baidu PHP is the best language and finding that it points to a lot of jokes about programmers. But if it comes from this joke, why does the programmer say C ++ pythonhaskell or other languages are the best and PHP is the best? It seems that the earliest source is not here. Does anyone know? I tried Baidu "PHP is the best language" and found that there are many jokes about programmers. But if it comes from this joke, why does the programmer say C ++/python/haskell or other languages are the best and PHP is the best? It seems that the earliest source is not here. Does anyone know? Reply: "Why isn't C ++/Python/Haskell or other languages the best programmer in a joke, but PHP is the best ?」 -- It is not funny to say "best" in any other language.
Any programmer who has mastered more than two non-PHP programming languages and has some common knowledge will instinctively realize the problem of PHP. There was a summary article here: PHP: a fractal of bad design/fuzzy notepad
(Visible in the translated version: five major damages, comprehensive analysis of poor PHP design
But the translation is very bad.) Li Chen's failure in PHP is far-reaching. If you don't have time to read that long article, I will tell you a simple example to illustrate how incredible PHP is: The names of PHP core functions are inconsistent, there are C functions like "strptime", short for "nl2br", but long names like "htmlspecialchars. Later, it was discovered that such inconsistency was not accidental, but when PHP was still a small language with fewer than one hundred functions, the author decided to use the function name.
Character Count-- As the hash (!) of the function (!). Due to this foolproof decision, the length of the PHP function name should be as long as possible with rank and even distribution, and the impact has continued until now [0]. There are even some good ideas in the above text:
You pull out the hammer, but to your dismay, it has the claw part on
BothSides.
Taking this sentence seriously, I made a PHP HAMMER:
Imagine you walk into the beer hall of the hardware Practitioners Association and see all kinds of tools from nails to electric screwdrivers hanging on the wall as a showcase. After a while, you pointed to such a hammer and said, "Ah, this is the best tool. "What do you think people in the pub will do?
[0] See http://news.php.net/php.internals/70691
What's wrong?
What people ask is the source of this stem.
Start to analyze it seriously...
Female: You can make everyone in this forum quarrel, so I will eat with you.
PHP programmers: PHP is the best language in the world!
A forum blew up and quarreling ......
Female: Take you, let's go!
PHP programmers: I cannot do it today. I must convince them that PHP must be the best language. Do not speak on (12 years. Miss the old emperor.
One phper laughs at another phper code.
Angrily shouted: php itself does not need high levels
It was immediately besieged.
A voice like a phper God said: ten years later, you will be ashamed of your shits.
But I have been in this line for 17 years.
So I deleted all the answers and left a sentence: php is the best language in the world. We select the ugliest girl in the class as banhua, and all the girls can say they are more beautiful than banhua. Three programmers are sitting in the lattice and programming.
A programmer says nothing. He uses python.
A programmer writes the script for a while and then compiles the script. He uses C ++.
A programmer sits there and browses the web page, quickly typing some characters from time to time.
The manager said, "Why don't you go online without working.
A: I'm checking what functions are needed to implement this function.
He uses PHP. Isn't that true?
Female: You can make everyone in this forum quarrel. I will leave with you tonight.
A Software Engineer: PHP is the best language!
A forum blew up and quarreling...
Female: take you. Let's go and do whatever you want.
A Software Engineer: I cannot do it today. I must convince them that PHP must be the best language.
Female :.......
Do other languages have such intimate things? Can you? Memory card
Let's talk about the advantages of php:
Compared with py, it does not need libraries such as django, and Native supports web. You don't need to configure anything, so the threshold is low. In addition, php syntax is C-like, and function naming is mostly C-like. Most coders have learned C/C ++ more or less in school, and they must be better at accessing php than py.
Compared with java, php supports more hosts. Before the rise of cloud hosts, all virtual hosts were lamp and support php. Virtual Hosts are the cheapest solution. That is to say, if you rent a virtual host, you can run the php website, and the cost will be low.
I personally think that there is no best language, only the most appropriate language. The reason why php emerged suddenly in the web era and beat py is that it has nothing to do with the Open Pit of php. It has something to do with the opportunity and the unsuitable fit of php in that environment. Thanks to the best language, the popularity of php is nothing more than nonsense.