22
hitko
4y

The problem with PHP is not the PHP, the problem is how most PHP devs still live in 2010

Comments
  • 2
    Do you mean as for security or?
  • 2
    @linuxxx yup, or coding standards. Like damn
  • 0
    I don't know about that one, chief
  • 0
    Yes, but have you met PHP?
  • 1
    PHP is like a good music band.

    You love their music but hate their fans.
  • 0
    At least they live in a more peaceful and pandemic free time.
  • 1
    @linuxxx For starters there isn't that many fresh PHP devs, while the old ones have yet to upgrade their mindset from PHP 5. Security, coding standards, testing, automated code checks, ... are just where their outdated practices become the most apparent.
  • 1
    @hitko strict type declarations, generators, null coalescing operator, spaceship operator, expectations, CSPRNG, list <-> object support via ArrayAccess, list key support, Nullable, Iterable, multicatch exceptions, Multibyte enhancements, Typed properties, Arrow Syntax, Numeric literal seperator...

    It's fascinating how some people don't want these features and instead torture themselves.

    A lot of these features solve a lot of actual problems and prevent real bugs.
  • 0
    THIS! Very much this.
  • 3
    The problem is it was too little too late for the most part. PHP devs that wanted to use modern language features moved away in their droves around a decade ago to node, ruby etc. - and the ones who remained were more than happy just sticking with the crap state the language was in back then.

    What you've got now is a reasonably modern language, but no-one willing to use it. Those (now) Ruby and node guys have no reason to move back, and those PHP devs remaining have no more desire to learn those new language features than they did in 2010.
  • 3
    @AlmondSauce That reminds me of this (very good) article: https://eev.ee/blog/2012/...

    "Those who do grow a clue tend to drift away to other platforms, reducing the average competence of the whole. This, right here, is the biggest problem with PHP: it is absolutely the blind leading the blind."
  • 1
    @IntrusionCM honestly, thanks for pointing these out. I was aware of some of them, but others not so much. It's a good reminder to actually start making use of these features, so thanks!
  • 0
    @mcalis You're welcome ;)
  • 2
    @kescherRant Well, being a PHP guy and a cybersecurity person as well...

    What's so bad about it? I honestly don't get it 😅
Add Comment