News for hackers. Stuff that matters.
Re:Htmx by czx4f4bd on Wednesday December 14, 2022 @04:15PM (#33990695)
https://htmx.org/essays/when-to-use-hypermedia/ addresses your first question. The tl;dr is "probably not" as htmx is not really designed to handle complex browser-based UIs, but I have seen people in this thread and elsewhere discuss more complex use cases, so YMMV.

https://htmx.org/essays/a-real-world-react-to-htmx-port/ is about porting a serious production Django application from React to htmx.

If you hate SPAs and are chafing against Vue for building your app, it's probably worth considering if your app absolutely needs to be a JS/frontend-heavy product, or if it would be viable using a more traditional HTML+AJAX design.

Re:Htmx by rgrieselhuber on Wednesday December 14, 2022 @04:32PM (#33990909)
After going through a fever swamp project involving React, I am definitely in the camp of getting back to basics.
Re:Htmx by papertokyo on Wednesday December 14, 2022 @05:44PM (#33991809)
SvelteKit just hit 1.0. Out of all the 'modern' meta frameworks, it's the one that feels most like just writing HTML.
Re:Htmx by pcthrowaway on Wednesday December 14, 2022 @08:06PM (#33993519)
I'm not sure why you're posting this on a thread about HTMX. HTMX is almost certainly more like "just writing HTML"

Svelte lets you keep HTML, JS, and CSS all together, so that's nice, but it's typical use case involves writing a fair bit of Javascript/Typescript

Re:Htmx by stickfigure on Wednesday December 14, 2022 @10:58PM (#33995028)
Wait till you end up on a fever swamp project involving templated HTML generation. Or even a fever swamp project involving jQuery.
Re:Htmx by rgrieselhuber on Thursday December 15, 2022 @12:45AM (#33995731)
I’ve built those sorts of apps for 20+ years. For me, the Rails / Flask type approach is much easier to work with.
Re:Htmx by stickfigure on Thursday December 15, 2022 @12:51PM (#34003113)
I invite you to work on a Java Server Faces project sometime. Or anything with "Portlets".

Anything you have 20 years of experience with is going to be pretty easy for you, no surprise there.

Re:Htmx by cyanydeez on Thursday December 15, 2022 @07:13PM (#34007718)
Any sufficiently complex state is going to develop edge cases that your framework of choice is going to develop sharp edges.

The question is then: has some other developer provided a useful salve/balme to this?

Re:Htmx by DLA on Thursday December 15, 2022 @10:03PM (#34009331)
Highly recommend the post and video mentioned above! The SaaS application shown in the video is non-trivial and appears to be very well done using htmx. Worth a close study https://htmx.org/essays/a-real-world-react-to-htmx-port/