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
    cake
    link
    fedilink
    arrow-up
    74
    ·
    3 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.

    • mriswith@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      edit-2
      3 days ago

      Most memes or jokes referencing a direct problem in PHP, are old or made by people who haven’t touched the language in a decade(version 7 was in 2015, and it removed/fixed a lot of issues and added needed features).

      There’s also the huge looming thing that a lot of programmers forget: Websites like Wikipedia run on PHP, not to mention the amount of WordPress and similar websites are out there. Which means it will keep going strong. And for a while Facebook also used quite a lot of it, to the point where they made a rudimentary compiler instead of rewriting parts in more efficient languanges.

      • Scrollone@feddit.it
        link
        fedilink
        arrow-up
        4
        ·
        3 days ago

        Also, most of the websites are made with WordPress, which… take a guess, yes, it runs on PHP!

        (even though WordPress is a bad example because it’s written in a horrible and ancient way)

    • SavinDWhales@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 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
      2
      ·
      2 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
      8
      ·
      3 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.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      3
      ·
      3 days ago

      Yeah, if you add tons of extra rules and tools, it can become almost as pleasant as the main Python or Ruby experience.

      Almost.