News for hackers. Stuff that matters.
Re:Htmx 2.0.0 has been released by w4 on Monday June 17, 2024 @07:09PM (#40712244)
Not a question, but I just wanted to say that HTMX is a joy to work. I’m using it in production to slowly replace VueJS wherever full SPA interactions aren’t needed, and it has made development so much simpler. HTMX is such a breath of fresh air from the over-engineered jenga tower that web dev has evolved into over the past decade.

Thank you!

Re:Htmx 2.0.0 has been released by recursivedoubts on Tuesday June 18, 2024 @11:57AM (#40719316)
:) great to hear
Re:Htmx 2.0.0 has been released by synergy20 on Thursday June 20, 2024 @07:31AM (#40737438)
aren't mixing vuejs and htmx making things more complicated?
Re:Htmx 2.0.0 has been released by w4 on Thursday June 20, 2024 @07:39PM (#40744683)
Not really. We were lucky that we used a hybrid multi-page architecture that makes the transition easy to manage. HTMX and VueJS are being used on different views with different routes/endpoints, so we can re-write any VueJS-based views one at a time.

This architecture was chosen partly because I am a boomer who remembers when websites were HTML files uploaded via FTP and couldn't understand why we shouldn't just return HTML for pages that didn't need app-style functionality, partly because we wanted something easy to manage with a small number of devs (HTML+vanilla js shines here), and partly because SPAs were new-ish when we first began development and the ecosystem was very immature and a long way from coalescing around a single winner (as it has now with React).

So in this case, HTMX is used with HTML templates and ordinary routing, while VueJS is isolated to single purpose SPA-style views with their own endpoints (for example, WebRTC video). And I suspect that we will even be able to eliminate the Vue-based pages altogether with a combination of HTMX and vanilla js if we want to, with how good vanilla js has gotten.