What is Nostr?
w3irdrobot
npub17q5…6f2y
2024-05-25 15:17:56
in reply to nevent1q…fclq

w3irdrobot on Nostr: the story of js has been to make richer, more interactive websites while minimizing ...

the story of js has been to make richer, more interactive websites while minimizing data transfer over the wire at runtime. I agree we've probably gone too far, but htmx is just bringing back memories of jQuery and its hellhole of plugins.

we have had solutions for backend handling everything. it's just HTML templating. htmx does not do what you say. instead of making the frontend focus on user interaction and response to those actions, it delegates fragments of a view to a backend that is also responsible for serving up full pages and potentially serving up data in another format like json. it taken a clean-ish separation of data manipulation and data rendering and instead made it worse. just use full backend templating and go to the backend with every button click at that point. serving up HTML fragments from an API is gross.

in addition, the entire setup is facilitated by a js lib. it's just complicating the logic of what owns the fragments of HTML for rendering data. as a backend developer myself, it's a really gross way of building an application.

but that's just my two sats.
Author Public Key
npub17q5n2z8naw0xl6vu9lvt560lg33pdpe29k0k09umlfxm3vc4tqrq466f2y