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!

    • balsoft@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      15 hours ago

      PHP is far from “least bad language”. Nowadays it is an ok language, one of many. You can also write ok code in it. The main issue is that it’s really easy to write horrible shit that just barely works and will break when you look at it wrong. In fact without a lot of knowledge and experience that is the code you will probably write.

      There are much better languages for any webdev niche you can think of, and some that are just better for webdev overall (e.g. Elixir). The reason PHP is still relevant is mostly huge legacy codebases that require a lot of engineering power to maintain (because PHP is not a good language for maintenance).

      The way I look at it is that PHP is the C++ of webdev (but slightly worse).

        • lad@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 days ago

          A language usually doesn’t become worse with time, at least if the devs do a good job at improving it.

          There are cases of new languages that looked better but didn’t become mainstream because the ecosystem requires time to grow (and adoption, which creates a vicious cycle because adoption requires ecosystem to already be there)

      • PolarKraken@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        FastAPI ftw, fight me! Lol jk Django is cool and useful and serves a different need, quite well from what I understand.

        • zalgotext@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Lol I’ve used both, FastAPI is nice too! I think my ideal situation would be FastAPI’s endpoints/routing, combined with Django’s ORM and DRF’s automagic serializers/viewsets.