DEV Community

Discussion on: Why does PHP get so much hate?

Collapse
 
yellow1912 profile image
yellow1912 • Edited

Developers in general are strange human creatures. People often users terms such as nerds to describe us for a reason. We are usually over-passionate about certain things (hate or love), and are often closed-mind (surprisingly). Once we hate something, we never look back.

PHP was an easy blame target for many security and performance issues of the web, mainly because it is:

  1. The most popular language for the web
  2. Easy to pickup (but not easy to master, no language is easy to master)

I think one should learn PHP if:

  1. They want to look for job (not the best paying, but always in demand)
  2. They are familiar with and like C-style syntax
  3. They want to work with a stable language (no sudden change of syntax, or major issue upgrading to new version)
  4. They like the a performant scripting language (with plugin, PHP can also do async like Node and Co routine like Go). The new JIT feature in PHP 8 should open doors for Machine Learning and many other applications with PHP as well. We may even see a PHP based server someday.