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!

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    1 day ago

    AJAX everything is icky. It’s part of what’s made browser tabs take more RAM than a typical desktop had in 1998.

    I exercised all client side JavaScript from an app I maintain. It’s fast, clean, and the back button always works. I just checked on one of the more complicated pages, and according to Firefox’s memory profile, it takes about 2.6MB of RAM.

    Where PHP really goes wrong is mixing HTML and code by default.

    • bitcrafter@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      I exercised all client side JavaScript from an app I maintain. It’s fast, clean, and the back button always works. I just checked on one of the more complicated pages, and according to Firefox’s memory profile, it takes about 2.6MB of RAM.

      Wow, that really is a light weight! What exercise do you have your code perform to get such impressive results?

      • Frezik@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        No JavaScript, just HTML and CSS. Basically no images. The heaviest page dumps 50 rows of logs in a table.

        It’s admittedly a fundamentally simple frontend, but we all know of frontends with a simple job and a not so simple frontend.

            • bitcrafter@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              22 hours ago

              The belief that exercising one’s code is good? I am certainly all in favor of testing, to be sure!

              (Sorry, I have been having some playful fun at your expense: the actual word you have been reaching for is excise, e.g., “If only I had exercised more, then I would not have developed a tumor requiring excision!”)