3 ms·
With JS you must use JS or TS and the steam factory that comes with it. With htmx you can use any language. That's a very high improvement for many.
by rakoo 3y ago
With JS you must use JS or TS and the steam factory that comes with it. With htmx you can use any language. That's a very high improvement for many.
- CharlesW 3y ago> With JS you must use JS or TS and the steam factory that comes with it. With htmx you can use any language. Can you elaborate on what you mean by this? Front-end framework don't care what language back-end logic is written in. For example, I have a Vue/Vite site that calls back-end functions that I'm gradually migrating from one language to another, and no front-end changes have been required.
- rakoo 3y agoYes, but you still need to write the frontend code in JS/TS
- wrapperup 3y agoYep, indeed. But htmx can reduce that a lot (to 0 even, in some instances), which is why it's really nice. There's also WASM, which is slowly gaining steam, but it still isn't a first class citizen like JS is.
- wrapperup 3y agoMuch of your business logic can live in the backend, and it keeps your frontend really tiny. The idea is to generate HTML on the backend, instead of using a front-end framework to generate HTML on the client from an API call. You can also do the same in Node if you want to, I currently have a TS website that is mostly templated HTML in production (without htmx). Htmx would be perfect for that site.
- CharlesW 3y ago> Much of your business logic can live in the backend, and it keeps your frontend really tiny. Ah, so "with htmx you can use any language" is true because its users are no longer using a programming language per se for the front-end, but instead are defining logic with htmx's DSL?
- rakoo 3y agohtmx extends html to generalize a behaviour that already exists, so it's as much a DSL as html itself is a DSL