RobertWHurst
Joined 14 years ago
Joined 14 years ago
I also suggest both languages have evolved quite a bit since. Between these, though, I think modern JS has had the most impact. This can mostly be attributed to the node community, with a great deal of insights from ruby.
Things like async patterns and quality package management have changed our standards for what we expect out of modern languages, despite the coerson based parlor tricks chuckled at by those who don't use the language.
PHP, on the other hand, is still a templating language that lives and dies in a request response cycle.
As for Htmx, it's nothing new. I don't dislike it, but comparing it to web frameworks like React is missing the point. A lot of what it gives you (or doesn't) can already be achieved with a bit of vanilla js and, if you're feeling fancy, jQuery. Advocating for it as a replacement for something like React is sort of like recommending a bicycle to someone who drives. Yeah, it has its place, but it doesn't replace the utility of the car. Insisting it does indicate you don't know much about cars - or maybe bikes.
Anyway htmx uncomfortably reminds me of the MVC servers we use to write 15 years ago where the frontend always ended up being an unreadable unmaintainable mess after a few years because the frontend was treated as a random collection of assets for views to use.
I'm Robert Hurst, a JavaScript engineer from Vancouver, BC. I love the web and have a passion for solving difficult problems with elegant programming.