5 ms·
> MESH is based on a simple principle: one component = one endpoint. This is a powerful idea - it allows us to write a HTML-first back-end in such a way that it
by xg15 1y ago
> MESH is based on a simple principle: one component = one endpoint. This is a powerful idea - it allows us to write a HTML-first back-end in such a way that it feels like writing an SPA.
Gotta admit, I'm still not completely grasping the hype around HTMX, but I thought one of the core ideas was that it decidedly should not feel like writing an SPA, but more like old-style PHP or ASP scripts again. (In the sense that the front end is driven by the back end instead of the other way around)
So wouldn't this give you sort of the worst of both worlds? The modeling overhead of SPAs + the tight coupling of HTMX?
- treve 1y agoYeah this also reminds me of people getting burned by Web Components, because they use them with the same granularity as React components.
- troupo 1y agoBecause that's literally how they were marketed and hyped for a very long time. Now? No one knows or can tell you what they are for (except leaf components and HTML Web Components maybe)
- rtpg 1y agoare they supposed to be more or less granular?
- paulddraper 1y agoLess granular. Somewhere between "React components" and "Microfrontends." They can still be small, but often you will want many fewer than React components.
- nsonha 1y agoanything can be granular, but doing that in web component is very clunky, it's like writing java with a class and a code file for every tiny thing.
- troupo 1y ago> Gotta admit, I'm still not completely grasping the hype around HTMX Right place, right time. React, the darling of web dev, has become huge and unwieldy and complex. The newcomers haven't been able to unseat it due to sheer ecosystem advantage. And then comes HTMX with quirky marketing hitting all the right notes (and having some actual good ideas underneath all that).
- klysm 1y agoReact is not huge - I don't understand where that conception comes from.
- pier25 1y agoCompared to what?
- klysm 1y agoAnything - it's like 10kb
- fijiaarone 1y agoReact is not huge. It’s just a library that converts strings to tags. Oh you want to use React? You want JSX — the only use case for the React library? You want routing and URLs and history and state management and … ok you don’t want a virtual DOM but you need it. And you need Babel and a build tool and a generator framework (because piecing it all together is too hard) and tree shaking and CSS (in JS!) and lots of weird and complex lifecycle hooks. React is both bigger (in terms of bytes) and more complex than Angular. So, to answer your question, React is more complex than just about everything. I’d like to see you find a more complex framework.
- dpc_01234 1y ago> MESH is based on a simple principle: one component = one endpoint. This is a powerful idea - it allows us to write a HTML-first back-end in such a way that it feels like writing an SPA. Yeah, I immediately could tell this is where the idea and HTMX collided. In the worldview where HTMX shines, every page is just a document. HTMX is just a small library to add some capabilities for better interactivity. The goal is precisely to avoid what the author wanted.
- deleted 1y ago[deleted]