4 ms·
My impression of reading [1] is that its just moving the "spooky action at a distance" to a different place. If I see this: <button hx-get="/clicked">Click Me
by arduinomancer 5y ago
My impression of reading [1] is that its just moving the "spooky action at a distance" to a different place.
If I see this:
<button hx-get="/clicked">Click Me</button>
My immediate question is
* What actually executes when I click the button?
* How can I debug the code that sends the GET request?
* How can I customize the GET request and add stuff like custom headers?
In the jQuery example all of that is obvious on first glance.
I feel like complexity can't be destroyed, only moved around.
- recursivedoubts 5y agoDo you feel that way when you see an href on a link? Do you feel the need to debug that? If so, how do you do it? There is an hx-headers attribute to modify headers, or you can plug into the events system if need be. htmx is extending HTML as a hypermedia and, therefore, is a very different model than most javascript-based apps today. I am not sure if complexity can be destroyed (I'd need to have a solid definition of complexity to discuss that) but it can certainly be managed in different ways, some of which are more effective than others for certain problems. We don't do web programming in assembly for a reason.