Re:React 19
by jakubmazanec on Wednesday December 11, 2024 @07:28AM
(#42387067)
> This seems like an exceedingly mean-spirited and unconstructive
It's not, it's precise.
Sorry you wasted time writing all this, because I don't care about hypermedia systems - it's not that it's bad technology, I simply don't want to write yet another awful templating language. But that's just an aside, because once again you're talking about something else. But okay, let's switch to debating HTMX. My point then still stands: you simply need JavaScript. Now instead of this useless arguing, go find/build some big e-commerce website with this hypermedia stuff (or truly with no JavaScript) and then we'll see.
Re:React 19
by recursivedoubts on Wednesday December 11, 2024 @07:38PM
(#42394844)
https://www.amazon.com uses hypermedia for most navigation
they are pretty big
Re:React 19
by jakubmazanec on Thursday December 12, 2024 @02:18PM
(#42402343)
Wow, most navigation - what a feat! /s
Re:React 19
by recursivedoubts on Thursday December 12, 2024 @05:36PM
(#42404135)
ikr!
That must explain why websites are so fast and responsive these days! /s
If you're wedded to the idea of dynamic reloads, which - imho - you ought not be, HTMX or Turbo are ways of achieving that without needing to write any JS. HTMX is designed to complete HTML as a hypermedia language, which it does using JS, but it itself does not require any additional JS to use. I'm sure the authors would dearly love it if HTMX's ideas were taken directly into HTML5, and they could scrap the JS library altogether. Its use of JS is an implementation detail borne of necessity.
If you're coming from SPAs and can't imagine websites working any other way, I highly recommend reading something like Hypermedia Systems (https://hypermedia.systems/). Come with an open mind, let it be your gateway drug. HTMX builds on a very old tradition of hypermedia, all the way back to Computer Lib/Dream Machines, through systems like HyperCard, to the actual, original definition of RESTfulness (that modern Ajax SPAs generally do not meet). It draws deep from the hacker ethos (you know, that thing that this website is about!).
Personally, I don't think HTMX is all that necessary. What I feel like you're missing is that the overwhelming majority of websites are technically very simple, and their value is in their contents, not in their stack. Did you notice the full page reload when you hit Reply on your comment, here on HN? Were you terribly put out by it? Would HN be an improved website if it were full of spinners and Ajax? I would respectfully suggest not.