Why Developers Love and Hate PHP_PHP Tutorial
Why developers love and hate PHP
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:
- The language is inconsistent, especially function names and argument order. "This is easily fixed, so it's not a big issue."
- PHP still has a lot of legacy baggage, like global variables, magic references, etc. "These bad practices are slowly being pruned from the language, but until they disappear, they will encourage ignorant developers to persist in bad practices."
- PHP is not as focused as other languages, which Lockhart attributes to "committee-driven, long-term piecemealism."
- Note 1: Zend Technologies is an Internet infrastructure software company. Zend Technologies is best known for its two founders: Andi Gutmans and Zeev Suraski, who, together with other Israeli programmers, developed the PHP language pioneered by Rasmus Lerdorf. http://zh.wikipedia.org/wiki/Zend_Technologies
- Note 2: Hack, an open source scripting language, runs on the HHVM virtual machine. The main developer is Facebook. Officially released on March 20, 2014. Before launch, Facebook had been using and testing it extensively on its website. http://zh.wikipedia.org/wiki/Hack_(%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80)


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.
