DEV Community

Discussion on: Underestimated PHP

Collapse
 
dyriavin profile image
Alexander Dyriavin

I personally find it something like this:
People learn JS or Python - because their learning threshold is lower comparing them to PHP. (Based on Stack-overflow survey )

Since both Python and JS - have less elegance in Object-oriented architecture and simpler syntax than PHP, for some people it might be quite a challenge to get used to PHP, which leads to hate.

Collapse
 
insidewhy profile image
insidewhy • Edited

Your ideas about "elegance" and "simple" are not given enough context to be descriptive. I can't even tell if you think you're being objective.

I dislike PHP because it's inconsistent and inherits baggage from objectively poor design decisions that were made in its past. I like many languages that are regarded as more complex than PHP and many that are regarded as less. I believe you'll find that this is the same for many others.

Thread Thread
 
dyriavin profile image
Alexander Dyriavin

Depends on the context and what problem has to be solved.

In every single language we can find inconsistency, mostly because:

  1. Langue built by people
  2. Langue used by people

Taking into account that people different, we cant find a consistent language.

What is important: I dont saying that PHP is perfect, i am saying that people talking "its dying", but its not the case. And the hate around it - as for me - not fair

Collapse
 
pyrsmk profile image
Aurélien Delogu

Probably. And also it's a big trend, there's always a black sheep somewhere so people can just beat it without any reason, ahah. But, let's say it, the PHP API should be revised IMO.

Anyway, I really love recent additions in PHP 8.1. Especially named parameters and auto defining properties in constructors.

Thread Thread
 
dyriavin profile image
Alexander Dyriavin

Strongly agree!

PHP8 game changer as for me.
Brings less boilerplate code, gives you 30% performance boost (thanks to jit )