4 ms·
But if you disable JavaScript, then htmx won't work either, right? And how is it lower cognitive load? You have to learn JavaScript, but now you also have to l
by t8sr 4y ago
But if you disable JavaScript, then htmx won't work either, right?
And how is it lower cognitive load? You have to learn JavaScript, but now you also have to learn htmx. I don't call that a win. Code is read by a lot more people than wrote it. It's not great if you constantly have to be learning some flavor-of-the-week framework. (No problem learning new things where it's warranted, but this isn't even interesting, it's just a DSL.)
- cryptonector 4y ago> But if you disable JavaScript, then htmx won't work either, right? It would work if either HTMX became standardized and implemented by the browser, or if I could allow HTMX (the JS) and not other scripts [selectively].
- mtrower 4y agoSee… that would be interesting and useful. But it’s not what’s on the table here.
- cryptonector 4y agoIt's called baby steps. Implement the HTML extensions you want using JS, then get them standardized. You could do it w/o the PoC first, but then it might be harder to get the mindshare and traction you need to get the W3C to go with it. Even if the W3C rejects this, it would still be useful for many who want to write declarative scripts rather than actual JS. Why does CSS exist anyways? Because it's a declarative language, and declarative languages are clearly better for certain tasks. HTML itself is declarative.