Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Honestly, seeing the Datastar server-side snippets reminded me of writing RJS in Rails back in the day.

Everything old is new again.

Having the backend aware of the IDs in the HTML leads to pain. The HTMX way seems a lot simpler and Rails + Turbo has gone in that direction as well.



i don't know what the big deal is

with a REST API, the front and back ends need to agree on the JSON field names

with an HTML API for Datastar, the front and back ends need to agree on the element IDs

Really not a huge difference


Right but this isn’t a REST API. This technique specifically rejects that approach.

With htmx, the server just returns HTML and the logic for handling it is entirely in the front end.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: