An unofficial, read-only Hacker News reader.

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan (opens external site)

119 points by xadz 9 hours ago | adamgreenough.net | 41 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. Not saying this is necessarily the case here, but you vastly underestimate just how enormously untested and fragile these legacy systems can be. Even an LLM can need a very skilled operator to succeed in such an environment.

    These kinds of systems often not only rely on every possible bug, they can rely on every possible side channel as well. And they often don't have any sort of testing or staging environment where screwups are recoverable.

    Replies (2)
    1. The problem is more the stuff that isn't fragile, has run well for a decade, and not been updated, perhaps because other things hold that back.

      I have one of these apps. Good code, modular structure (but very bespoke, and much of it quite an old design pattern), has a dev environment (but that environment is also old), makes use of a few now quite old dependencies. Works really well, and as a freelancer I simply don't get the billable time to fix what "ain't broke", so it gets improvements as it gets new feature requests.

      The problem is that it ain't broke, in fact. Nevertheless I fully know the IIABDFI days are gone.

      I am recovering from severe burnout and untangling its dependencies, restructuring it into more modern architecture that will be more amenable to LLM management, but as with any serious legacy code there's a lot to deal with from several directions at once.

      Even figuring out how to describe its architecture concisely to an LLM is a multi-phase project! It will be easier to semi-manually modernise some things so that there is less explaining to do.

      As it happens, getting it to literally just run on more recent PHP will be a much easier problem.

      Replies (2)
      1. Lucky you!
      2. > Even figuring out how to describe its architecture concisely to an LLM is a multi-phase project! It will be easier to semi-manually modernise some things so that there is less explaining to do.

        You don't need to do this anymore. Ask the LLM* to describe its architecture to you.

        *edit - a good, frontier LLM - like Astra/Sol/Opus

    2. I don't underestimate it, but if you still have this problem - it is more of a people/process problem than a technical one.

      No staging or testing environment? Get the LLM to create one... Can't create one because of external dependencies/APIs? Get the LLM to reverse engineer you a very convincing mock of that dependency/API - each time there is an observed difference between the real and staging environment, just throw the LLM at fixing it.

      The main barriers to achieving any of this is not technical. I'm sure there's places out there where none of the above is possible because those responsible for the systems don't have access to them.

      The skilled operator used to be the one dude who knew how the system worked - who didn't have the time to do anything but fight fires. Now days, the skill is understanding how to get the LLM cranking in a good loop and letting it cook. You don't need 20 years of working on a system to know how it works anymore. The most important architectural decision you need to have is to have version-controlled code, infra and monitoring so that the LLM can reason about the system. I suspect many of these legacy systems do not even have source control, but the good thing is that once again, a like-for-like migration such as capturing all the details of a current system and representing it as code is another good example of a self-verifying task that LLMs are also great at.