News for hackers. Stuff that matters.
Re:HTMx by benatkin on Thursday May 25, 2023 @10:43PM (#36079123)
The community is convinced that their form of HTML attribute salad is hypermedia and others, that look better IMO, are not. That explains some of the excitement over it.

They have a tiny bit of a point, in that the forms are able to work without client-side JavaScript* thanks to progressive enhancement, and only Svelte and maybe Remix and a handful of others do that. Svelte does a better job of explaining it and making it customizable IMHO though. https://learn.svelte.dev/tutorial/progressive-enhancement

Though Svelte has this, I think perhaps most Svelte devs prefer JSON to form data, because it's directly nestable. That in general is good for full-stack development. You don't see very much TOML in the framework written by the author of TOML, but you do see a little. :) https://redwoodjs.com/ form-data is very TOML like in its data model.

* Except nowadays most of them depend on it to be usable.

Re:HTMx by n2d4 on Thursday May 25, 2023 @10:54PM (#36079210)
> thanks to progressive enhancement, and only Svelte and maybe Remix and a handful of others do that.

Notably, since a few weeks ago, Next.js (by far the biggest of the pack) has support for progressive enhancement with Form Actions.

https://nextjs.org/docs/app/building-your-application/data-f...

Re:HTMx by benatkin on Thursday May 25, 2023 @10:59PM (#36079258)
I hadn't realized that, but knew that's where it's headed, because I remember when they were accused of ripping features from Remix. https://news.ycombinator.com/item?id=31485733 Never a dull moment in the JavaScript community. ;) I'm helping with a Next 13 project so I'll see it firsthand soon though.