2 ms·
I was looking at that site a bit earlier today and I guess I still don't understand the motivation. On the "Htmx in a Nutshell" page you say: > This keeps you
by criddell 5y ago
I was looking at that site a bit earlier today and I guess I still don't understand the motivation.
On the "Htmx in a Nutshell" page you say:
> This keeps you firmly within the original web programming model, using Hypertext As The Engine Of Application State without even needing to really understand that concept.
Why is the original web programming model worth consideration? Why choose a RESTful API over a more RPC-like API?
- recursivedoubts 5y agoSome reasons you might want to use hypermedia over an RPC-like API: - The simplicity of the model (e.g. The "active search" pattern can be implemented with a few hypermedia attributes in htmx: https://htmx.org/examples/active-search/ https://htmx.org/examples/active-search/) - The flexibility of the uniform interface[1] (e.g. versioning your API is much less of a concern) - The ease of deep linking