Unofficial Hacker News companion — get notified on comment replies, and more.

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

284 points by xadz 3 days ago | adamgreenough.net | 132 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. Not going to get deeply into a discussion of the architecture of a client’s product on the internet, as I am sure you understand.

    But it’s obvious that modern web frameworks now increasingly have a code pattern with simpler flow of control, fewer inversions. Compare the architecture of an Express or Gin app with the architecture of a database-CMS-backed app like Wordpress. Routes in closures, fewer class inheritances, flow of control is not altered by configurations held in databases, etc. The common pattern in web app frameworks tends not to be particularly MVC, either.

    (This customer’s app is not WP but it does come from the CMS era; it’s not Laravel either)

    FWIW, configuring PHP for compiling from source probably is something the LLM can plan out from phpinfo(). I didn’t think of this last time, but then the installation I was replacing had some capabilities I know (but the code would not show) were unused/different.

    Having gone through it once I have the configure parameters saved, but I suspect even a modest LLM can reproduce them from the configuration. Nevertheless it’s not difficult, it’s just annoying.