Home >Backend Development >PHP Tutorial >Why Developers Love and Hate PHP_PHP Tutorial
The respected server-side scripting language PHP is best known for its use in web development. First released by Rasmus Lerdorf in 1995, it has been influenced by WordPress and Facebook. According to W3Techs, the server-side programming language of 82% of websites is PHP. The language lags slightly behind Java in the ranking of programming language popularity, falling to sixth place in the competitor Tiobe rankings. As a high-performance upgraded version, PHP 7 is expected to be released in 2015.
However, like any language, it has its supporters and detractors. Here's why supporters support PHP and dissenters denounce it.
Good: popular, quick to get started
“PHP is currently the most popular web development language,” said Andi Gutmans, CEO of PHP tool provider Zend Technologies. Josh Lockhart, a developer at New Media Campings and a writer, emphasized PHP's small learning curve, ease of deployment, and rapid development iterations. Lockhart said, "PHP is one of the most accessible web development languages, and it is installed on most servers (including most shared hosts). It is relatively easy to learn because of excellent online documentation and up-to-date online resources."
Good: easy to find a job
"PHP helps you make money and get a job on the server side," Gutmans said. A quick search of the Dice.com technology jobs site last week turned up 3,366 PHP-related jobs. It's tame compared to the 17,418 Java jobs, just behind Perl (4,300) and Python 5,429), but higher than Ruby (2,973) and even Objective-C (985). Lockhart regards PHP as one of the most frequently used languages, although it is somewhat conservative compared with languages such as Ruby, Python, Go and Rust.
Okay: continue to develop
The language boasts modern features like closures and namespaces, as well as performance and modern frameworks. As Gutmans points out, "Some people who want to leave don't have the necessary education on what PHP has to offer." Lockhart said developers are realizing that PHP has powerful modern features and a suitable object-oriented programming model. The upcoming version 7 provides huge performance improvements on applications. Lockhart pointed out that Facebook’s enhancements to PHP include the HHVM virtual machine and Hack language Note 2].
Bad: Complaints about design, lack of focus
Blogger Eevee said in his 2012 open letter against the language "PHP: Irregular Bad Design", "In fact, every feature in PHP is more or less irregular." Eevee not only gives bad reviews to the language, but also to the framework and ecosystem. According to the blogger, the language is not predictable and consistent, but full of surprises and inconsistencies. Among critics, PHP has been called opaque, had no default stack trace, suffered from complex, poorly functioning types, and had "no clear design philosophy." Early PHP was inspired by Perl; with 'out' The huge stdlib of parameters comes from C; the object-oriented part imitates C++ and Java design. ”
Lockhart admitted that Eevee’s anti-PHP remarks were “exaggerated.” Despite being a PHP supporter, Lockhart was gracious enough to list the criticism when asked: