Hacker News new | ask | show | jobs
by moxplod 1236 days ago
First I heard of HOTWIRE. I have been using PJAX for a decade now, which is a similar concept.

I use .net mvc with a razor templating engine. But this can be used with any backend.

It makes it super easy for me to maintain all my UX in server-rendered HTML templates. I get a clean SPA with super high development efficiency with MINIMAL javascript.

The best part was I could hire any developer and they know how to work in basic HTML/JS/CSS.

Edit: Reading more, I might need to spend time looking into HTMX/Hotwire as a replacement for PJAX at some point.

3 comments

I love Hotwire and it's reinvigorated my love of Rails.
Check out also Unpoly. It’s probably the most “batteries included” of this kind of tools, although not as popular.
Can you expand further?

What has you bother to introduce unpoly when Hotwire is included by default? Aka, what are the main things missing/better that drive you to use unpoly.

I was replying to @moxplod because it seems they didn't know about these alternatives to pjax. They're mentioning HTMX, etc so I've added Unpoly to the list of similar things.

I'm not saying you should replace Hotwire with anything else - I wouldn't do it given it's the default or defacto solution.

But all of these tools (pjax, htmx, unpoly and hotwire) work perfectly well outside of Rails too. So if you're not using Rails and you're, for example, using Django which doesn't have a default solution then you can pick one of them, and I think Unpoly is a very nice one.

Worth looking into Hotwire. It works well with .NET MVC.