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

Because then I can keep the bulk of the logic in a language that’s better designed than JS. Not having to write JS is a huge feature. The added complexity of HTMX is abstracted behind a single library, and the bulk of the logic stays in a better-designed language—Go, Python, Java, Kotlin, Rust, Zig, C#, anything.


None of those languages can do anything in the browser.


With HTMX they can, because they make server rendered pages more viable.


When someone swipes a carousel, how will C# update the dom attributes and labels on the fly?


For stuff like this you can always complement HTMX with stuff like Hyperscript [1], also from the htmx authors or AlpineJS

[1]: https://hyperscript.org




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: