Source.

Yep, PHP is turning 30 this year! Wondering if “PHP is still relevant?” Ever since we have been hearing that PHP is dead. It was “dead” 10 years ago, 5 years ago, and “is dead” today. But somehow - it isn’t. Anyway… happy birthday!

  • BlameTheAntifa@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    11 days ago

    In PHPs defense, it keeps evolving in positive, meaningful ways. If you are up to date with it, it’s quite sophisticated and enjoyable. Doubly so if you use a framework like Laravel.

    • SavinDWhales@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 days ago

      PHP 8.4 is pretty good, TBH. You absolutely CAN write great code with modern PHP. … Shame that most PHP I touch is legacy code that’s at MOST PHP 7.4 - which is EOL since November '22 and has to be upgraded or replaced. 😬

    • mad_lentil@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 days ago

      Yeah last time I used it was with a laravel monolith and actually it wasn’t that bad.

    • Lovable Sidekick@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      I agree. A lot of people who mock PHP know almost nothing about it but they know they’re supposed to hate it because all the cool kids do.

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      11 days ago

      It’s still bad nowadays, and it’s the main language used on pretty much every system of several state level secretaries in Brazil. My colleagues work with it daily (I don’t program, thankfully) and they’re not exactly fond of it. Legacy systems, man

  • Decq@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 days ago

    Let’s be honest though. The early PHP versions were absolute dog shit. And the definition of how not to design a programming language. That said, that never stopped anyone in web development from using it apparently. No clue what modern PHP looks like, apparently it’s better now.

    • kingofras@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      11 days ago

      Was not intended as programming language. The name literally stands for Hypertext PreProcessor. It was meant to be a script injector for HTML back when the internet was still fun.

      Then it got out of hand and PHP didn’t evolve fast enough to be a web technology leader, but never ceded the position of old trusty workhorse, and still powers a significant part of websites.

      • Decq@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 days ago

        I somewhat know the history of PHP and how it came to be. And that it was just a personal project that suddenly got big. So I don’t blame the creator. But that still doesn’t make it a good language.

    • thesystemisdown@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      Modern PHP is better because it’s modern. Which early version of a programming language was good? I’ve used a lot of them, and by modern standards, I think dog shit is a somewhat appropriate description for most of them.