• Ftumch@lemmy.today
      link
      fedilink
      arrow-up
      9
      ·
      7 hours ago

      While the language has improved over the years, I’ve personally never seen a PHP codebase that made me happy.

    • rtxn@lemmy.world
      link
      fedilink
      arrow-up
      30
      arrow-down
      8
      ·
      12 hours ago

      Or, if you spin it another way: you could’ve picked up the skills to develop for and support various frameworks, or get stuck in a rut for 30 years with just a single antiquated server-side language.

      • HerbGrower@slrpnk.net
        link
        fedilink
        arrow-up
        15
        arrow-down
        1
        ·
        11 hours ago

        If its so antiquated why is it still used? For a lot of things its perfectly fine. Even this vulnerability is just a case of run the update command for your package manager.

        • rtxn@lemmy.world
          link
          fedilink
          arrow-up
          12
          arrow-down
          1
          ·
          edit-2
          11 hours ago

          It’s still used because momentum is a powerful factor. That doesn’t make PHP better, but it can make it a more expedient choice.

          PHP is a preprocessor that grew too big for its britches. It’s a monolithic monster that runs only one thread per request in an interpreter. It works well enough if you need to manage the data of an internet forum, but it becomes increasingly unsuitable as the task’s complexity grows. If you need threading or background tasks, or if scalability is important, PHP is not it; just read any number of Nextcloud vs OpenCloud comparisons.

          • kunaltyagi@programming.dev
            link
            fedilink
            arrow-up
            7
            arrow-down
            1
            ·
            10 hours ago

            “one thread per request” , “interpreter”

            (Looks confusingly) That’s JS and Python as well

            PS: being obtuse on purpose, but PHP lends itself well to typical requirements of web hosting and you can always call out to a diff process if needed

          • HerbGrower@slrpnk.net
            link
            fedilink
            arrow-up
            4
            ·
            10 hours ago

            Fair, but a lot of sites don’t need anything more complex than an internet forum, often less than even that.

      • SkaveRat@discuss.tchncs.de
        link
        fedilink
        arrow-up
        5
        arrow-down
        3
        ·
        9 hours ago

        You realize that the language evolved over the years and it’s not even close to the same language it was 15 years ago?

        The fact that you also mix frameworks and languages also tells me that you have no idea what you’re talking about