News for hackers. Stuff that matters.
Re:Mesh: I tried Htmx, then ditched it by mixmastamyk on Tuesday September 23, 2025 @07:16PM (#45354055)
Nothing is stopping one from adding a bit of javascript when needed. Or complimenting with something like alpine or jquery.
Re:Mesh: I tried Htmx, then ditched it by CooCooCaCha on Wednesday September 24, 2025 @06:18PM (#45366623)
This is why I never understood htmx. Vanilla react is pretty easy to get started with, you just create a root component and mount it to a DOM element.

Maybe 10 lines of code.

Then you can go as simple or as complex as you want without having to awkwardly rig it up to another UI system.

Re:Mesh: I tried Htmx, then ditched it by mixmastamyk on Thursday September 25, 2025 @12:01AM (#45369151)
Htmx (re)uses html and doesn’t require learning a new paradigm or loading heavyweight libs.
Re:Mesh: I tried Htmx, then ditched it by troupo on Thursday September 25, 2025 @03:26AM (#45370148)
Except it requires learning a bunch of new paradigms including a full on custom DSL, and requires loading a library that is that is at best as heavy as most competition
Re:Mesh: I tried Htmx, then ditched it by mixmastamyk on Thursday September 25, 2025 @11:13AM (#45373691)
Not at all, simple things are simple.
Re:Mesh: I tried Htmx, then ditched it by troupo on Thursday September 25, 2025 @05:18PM (#45379236)
Simple things are simple everywhere.

And then suddenly you need to be aware of the quirks: https://htmx.org/quirks/

And then you need your backend to handle all the weird new headers: https://htmx.org/reference/#request_headers

And then you need to learn completely non-HTML things like "attribute inheritance" https://htmx.org/docs/#inheritance

And then you need to learn a whole new DSL https://htmx.org/docs/#trigger-modifiers

HTMX probably has more concepts than react at this point in time.

Re:Mesh: I tried Htmx, then ditched it by mixmastamyk on Thursday September 25, 2025 @08:48PM (#45381230)
These examples are trivial and/or rare, especially in comparison to the monstrosity of a SPA framework. I picked up htmx in an hour or two.

I do think it is a bit overengineered however, though there are other implementations of the idea.

Re:Mesh: I tried Htmx, then ditched it by troupo on Friday September 26, 2025 @01:45AM (#45383093)
> comparison to the monstrosity of a SPA

What you call "monstrosity" is just as trivial and rare.

See how this works?

You claimed that HTMX doesn't require learning new paradigms. When it's actually a new paradigm replete with multiple different requirements, custom DSLs, new behaviors etc.

Re:Mesh: I tried Htmx, then ditched it by mixmastamyk on Friday September 26, 2025 @12:16PM (#45388158)
It uses html’s paradigm. You keep using the term DSL as if it’s appreciably different than “put a string in an attribute.”

Htmx is an order of magnitude easier to get started with for a person who knows html, ask me how I know.

Re:Mesh: I tried Htmx, then ditched it by CooCooCaCha on Friday September 26, 2025 @10:39AM (#45387033)
You don’t have to use an SPA framework. Hopefully you don’t think you need one to use react.