Home >Backend Development >PHP Problem >Why do so many people say php is bad?
I think people tend to have some prejudices when they don’t know much about something. The deeper you understand something, the less bias you will have and you will have your own unique ideas and perceptions. Rather than blindly despise and hate.
#Every language has its own characteristics and advantages. The same goes for php. Friends who have read the PHP source code will be impressed by its clever concept. At the same time, php is not omnipotent. Each language only works best in its specific context.
Advantages (Recommended learning: PHP programming from entry to proficiency)
1. It is easy to get started, the amount of code is small, and it represents a small effort You can get the results your boss wants at the right price. How many jobs in other languages will this take away?
2. Coding is an art, but many people don’t know what real art is when they first get started. So everyone either likes to learn the lowest level or the most superficial level. At the middle level, everyone either thinks it is superficial or a bit difficult. If you can't achieve high, you can't do low.
3. PHP Siege Lion’s treatment is low, and many people switch after learning a little.
4. After being robbed of your job, you have to find a reason to criticize PHP. For example, it is difficult to become a master of PHP, most PHP programmers are terrible, etc. . . . . As for the technical advantages and disadvantages, which language does not have advantages and disadvantages?
5. Moreover, the PHP MySQL combination is open source and free, and is used by most companies.
6. There are other developers, such as JAVA, C, Python and other languages. The learning costs of these programming languages are greater than PHP, and in terms of use, PHP has a huge advantage.
PHP language, as a scripting language for server-side development, is very famous in website development. Since its creation by Rasmus Lerdorf in 1995, according to a W3Techs survey, PHP accounts for 82% of known server-side programming languages. There are many companies like WordPress and Facebook among them. It is second only to Java in PyPL (Programming Language Popularity Ranking) and ranks sixth in Toibe ranking. High-performance PHP 7 will be released in 2015.
Like all technologies, reviews are mixed. Let’s take a look at why some people love it and others despise it.
Disadvantages: Design flaws, lack of attention
Blogger Eevee said that every functional design of PHP is problematic.
His view of PHP is extremely poor design. Eevee not only dislikes the language, but also disagrees with its framework. He believes that the PHP language is unstable and accidents always occur. PHP is called an opaque language because there are no stack traces and brittle input. There is no clear design philosophy.
Early PHP was influenced by Perl. The standard library with out parameters was introduced by the C language, and the object-oriented part was learned from C and Java.
When Lockhart learned about Eeveef's remarks against PHP, he felt that they were exaggerated. Despite being a supporter of PHP, Lockhart is very patient with criticism of PHP.
The language is not persistent, especially in namespaces and parameter order. Lockhart: These are easy to adapt to and not a big deal.
PHP still has many legacy things, including global variables, magic references, etc. Lockhart: These bad implementations will continue to be eliminated. But before being eliminated, it gives programmers who have bad habits something to do.
PHP doesn’t get enough attention. Lockhart is also constantly working to increase the attention of PHP. Lockhart: People in the community are still paying attention to PHP, albeit intermittently.
Likes and dislikes of a technology come from many aspects, from personal habits to project needs. PHP cannot be loved by everyone.
The above is the detailed content of Why do so many people say php is bad?. For more information, please follow other related articles on the PHP Chinese website!