> Also, by eliminating application javascript, it allows you to spend more time in your preferred language on the back end.
But these days (using transpilers and/or WebAssembly) you can choose just about any language on the front-end ...
Re:An SPA Alternative
by recursivedoubts on Tuesday July 19, 2022 @06:23PM
(#32158770)
That's true and, in the case of pyscript in particular, may limit the appeal of something like htmx.
On the other hand, the simplicity of the hypermedia approach, and the flexibility of ReST are still there.
We'll see.
Also, by eliminating application javascript, it allows you to spend more time in your preferred language on the back end.
The downside is the same as regular HTML, although less pronounced: since you are driving application state through hypermedia (HATEOAS), the less coarse-grained your state or UI gets the more annoying things are going to be. There are some patterns that help but eventually, if you want to update 12 different places in your UI at once on every keystroke, the hypermedia approach just isn't going to cut it.