Why do developers disagree with the PHP language?

Source: Internet
Author: User
Why do developers disagree with the PHP language? as a script language developed on the server side, it is very famous in website development. After Rasmus Lerdorf was created in 1995, the W3Techs survey showed that PHP accounted for 82% of the known server programming languages. Many of them are WordPress and Facebook companies.

PHP language, as a scripting language developed on the server side, is very famous in website development. After Rasmus Lerdorf was created in 1995, according to the W3Techs survey, PHP accounted for 82% of the known server programming languages. Many of them are WordPress and Facebook companies. Ranking No. 6 in the top ranking of PyPL (programming language popularity ranking), second only to Java. High-Performance PHP 7 will be released in 2015.

Like all technologies, people think differently about it. Let's see why some people like it, while others curse it.

Advantage 1: popular and easy to use

PHP is currently the most popular programming language. Said Android Gutmans, CEO of Zend technology, a PHP tool vendor. Josh Lockhart, a development engineer at New Media Campaigns, told us that PHP is the easiest language to learn for website development. It is installed on most servers. PHP is easier to learn than other languages due to real-time update documents and Q &.

Advantage 2: many website development jobs

Gutmans also said that in server-side website programming, PHP will help you find a job. According to a short survey by Dice.com, there are 3366 PHP-related jobs, which are less than 17418 in Java and 4300 in Perl, and 5429 in Python, but there are more positions than Ruby's 2973 and 985 Objective-C jobs. Although Ruby, Python, Go, and Rust are slightly inferior, Lockhart believes that PHP is still one of the most widely used languages.

Advantage 3: Continuous Development

PHP is constantly compatible with technologies such as closures and namespace, taking into account both performance and popular frameworks. Gutmans said that accessing PHP does not need to know what technologies PHP provides. Lockhart, as a developer, said: PHP is considered an object-oriented development model. The next version is 7, which will provide applications with higher performance. Lockhart pointed out that Facebook is also strengthening PHP, such as their HHVM virtual machine and the Hack programming language.

Disadvantages: design defects, lack of attention

According to the blogger Eevee, every functional design of PHP is problematic. His opinion on PHP is an extremely bad design. Eevee does not like this language, nor does it agree with its framework. He believes that PHP is unstable and there are always various accidents. PHP is called an opaque language because there is no stack tracing and various vulnerable inputs. There is no clear design philosophy. In the early days, PHP was affected by Perl. The standard library with out parameters was introduced into the C language, and the object-oriented part was learned from C ++ and Java.

Lockhart was exaggerating when he learned that Eeveef was opposed to PHP. Despite being a supporter of PHP, Lockhart is patient with criticism of PHP.

  • The language is not continuous, especially in the namespace and parameter order. Lockhart: these are easy to adapt, not a big problem.
  • PHP also has many legacy things, including global variables and magic references. Lockhart: These poor implementations will be constantly eliminated. But before the elimination, it turned into a habit of the program can be applied.
  • PHP is not paying enough attention. Lockhart is also constantly striving to increase the attention of PHP. Lockhart: Although intermittent, people in the community are still very concerned about PHP.
  • The dislike of a technology comes from many aspects. from personal habits to project needs, PHP cannot be a matter of mutual affection. However, you must have a lot to say to PHP, let's talk about the comment below.

    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.