News for hackers. Stuff that matters.
Re:Htmx Is the Future by pier25 on Friday May 05, 2023 @12:47PM (#35831876)
I agree but one important point to consider is the dev effort of making a proper SPA which is not a very common occurrence.

"The best SPA is better than the best MPA. The average SPA is worse than the average MPA."

https://nolanlawson.com/2022/06/27/spas-theory-versus-practi...

Re:Htmx Is the Future by 0cf8612b2e1e on Friday May 05, 2023 @12:54PM (#35831970)
Can we even weight that statement? The average SPA is significantly worse than the average MPA. There is so much browser functionality that needs to be replicated in a SPA that few teams have the resources or talent to do a decent job.
Re:Htmx Is the Future by pier25 on Friday May 05, 2023 @01:04PM (#35832137)
Yeah it's so easy to fuck it all up with an SPA.

Recently I was using Circle (like a paid social media platform for communities) and pressing back not only loses the scroll position, it loses everything. It basically reloads the whole home page.

Re:Htmx Is the Future by seti0Cha on Friday May 05, 2023 @01:10PM (#35832233)
The nice thing about htmx is it gives a middle ground between the two. Build with the simplicity of an MPA while getting a lot of the nice user experience of an SPA. Sure, you don't get all the power of having a full data model on the client side, but you really don't need that for most use cases.
Re:Htmx Is the Future by pier25 on Friday May 05, 2023 @01:13PM (#35832267)
OTOH if you need to go back to the server after every interaction the UX can get pretty bad for distant users.
Re:Htmx Is the Future by lenkite on Friday May 05, 2023 @01:12PM (#35832253)
Extend that statement with "Only True Web Gods can create the Best SPA".
Re:Htmx Is the Future by pier25 on Friday May 05, 2023 @01:29PM (#35832473)
You joke but even Google with all its resources struggles to create proper SPAs.

I dread using the Google Cloud console for example.