News for hackers. Stuff that matters.
Re:Hypermedia Clients by infogulch on Wednesday February 01, 2023 @10:46PM (#34621773)
You're not really contradicting the article, or the point of htmx. [1] Json-based Data APIs are for machines to interact with. Don't try to shoehorn REST semantics onto it, accept and embrace the fact that you are coupling tightly and proceed accordingly. But that still leaves space for Application APIs, where a human drives the client, and in that case REST/HATEOAS semantics work just fine.

https://htmx.org/essays/splitting-your-apis/

We went on a wild goose chase trying to recreate a hypermedia client with javascript, contorting xmlhttprequest from an application api into a data api, on an already existing hypermedia client (the browser) because the latter stagnated and failed to fill out its functionality.

htmx adds the missing functionality to make the browser a functional hypermedia client.

Re:Hypermedia Clients by habitue on Thursday February 02, 2023 @02:11AM (#34623218)
you have inspired me to read more about htmx, but I will likely retain my bias against hypermedia