News for hackers. Stuff that matters.
Re:The balance has shifted away from SPAs by recursivedoubts on Saturday May 21, 2022 @02:45PM (#31460637)
thesis: web 1.0 hypermedia-based applications (clunky)

antithesis: web 2.0 SPAs using JSON Data APIs (slick, but complex and & web-native)

synthesis: web 1.5 apps using hypermedia-oriented libraries like htmx or unpoly (slick, web native)

Re:The balance has shifted away from SPAs by bestinterest on Saturday May 21, 2022 @03:28PM (#31460972)
Lots of credit for yourself with htmx, its great. I think I prefer unpoly myself but htmx is winning the popularity because of how vocal you are!

I wish the unpoly creator also did similar! Both great frameworks. Hotwire also!

I wish there was deeper comparisons on the big three

Re:The balance has shifted away from SPAs by recursivedoubts on Saturday May 21, 2022 @03:54PM (#31461199)
i always try to mention unpoly unless the discussion is specific to htmx because I agree: it is a wonderful library and henning is a great guy in general.

Hotwire probably doesn't need my help, I think dhh has a big enough mic. :)

Re:The balance has shifted away from SPAs by robertoandred on Saturday May 21, 2022 @04:11PM (#31461362)
None of htmx's modal examples are accessible, doesn't give me confidence it can be used for serious projects.
Re:The balance has shifted away from SPAs by benpate on Sunday May 22, 2022 @01:23AM (#31465098)
My dude... I made those in like a day, when I was first getting started with htmx. Accessibility has nothing to do with the language or framework you use. It's about the thing you build with it. If you can build it with Javascript, you can build it with htmx.

Give this a try, and see if it's any more accessible -- https://benpate.github.io/hyperscript-widgets/modal/ -- I've learned a bit since those first demos, and have followed every W3C guideline I can find on accessibility to make them.

One more thing, I'm nowhere near being an accessibility expert, so I'm positive someone who knows more will have suggestions on how to improve this, too. But it has nothing to do with htmx/hyperscript, and everything to do with me being new at accessibility.

Bugs/Suggestions/Pull Requests are always welcome. That's what makes htmx fit for "serious projects."

Edited to add: Htmx is a JS-based extension of the natural hypermedia patterns your browser already uses, not a widget library. All of the demos on the site are just that -- demos that show you the kinds of things you can build, and not plug-and-play, ready-for-npm widgets you can just drop into your application without a second thought.

Re:The balance has shifted away from SPAs by recursivedoubts on Saturday May 21, 2022 @07:55PM (#31463424)
if you are willing to jump on the discord, we'd be happy to improve them

https://htmx.org/discord