by bredren · 3y ago · 0 comments
- Writing Vanilla JS ES6+ is not that hard, actually it is pretty fun.
- Toolchain for JS/TS/CSS was bad but is pretty good now. esbuild is simple and great.
- Dodging learning the above two things does not serve the dev.
Others have to do with foundational aspects of the project:
- HTMX is in denial of need to support native clients. IIRC, the official recommendation is that native clients should parse HTML for values.
- HTMX is still just a javascript library dependency with syntax that must be learned by whoever picks up the project.
IMO HTMX's buzz can largely be attributed to anti-frontend or anti modern frontend.
This thread describes this idea: https://twitter.com/DanaWoodman/status/1682075711266496512
Native clients are deliberately out of scope, but scraping HTML isn't the suggested solution. Rather, it is having a JSON API next to the hypermedia API: https://htmx.org/essays/splitting-your-apis/. This does have the downside of duplicate work, but does bring stability to the API without introducing something like GraphQL.
And yes, you will need to learn HTMX to use HTMX. But the surface of HTMX is generally quite small, and composes well with knowledge about HTML/CSS.
i like vanilla es6 too. i've enjoyed using it with htmx, rather than using intercooler or alpine.