Unpoly is what Hotwire should have been
randomwik.org
Unpoly is what Hotwire should have been
1–10 of 22 posts
Re: Unpoly is what Hotwire should have been
#2Re: Unpoly is what Hotwire should have been
#3Re: Unpoly is what Hotwire should have been
#4Re: Unpoly is what Hotwire should have been
#5> Get powerful new HTML attributes to build dynamic UI on the server. Works with any language. Gracefully degrades without JavaScript.
I wouldn't call being completely dependent on the server "graceful degradation". App server and web server should not be conflated. A degradation should imply the site is still up but some interactions don't work or work intermittently.
You can trivially achieve that with a static web server in front of an app server that only has to concern itself with providing a data-only API. Frontend is frontend and backend is backend. Separation of concerns is important in real world production environments. Client-server paradigm is the last thing I would ever question about web apps or any apps really.
Also, please don't invent arbitrary standards and create lock-in. This isn't 2010 anymore. Htmx and Hotwire are just as terrible as this. No point in comparing when they're all fundamentally flawed.
Re: Unpoly is what Hotwire should have been
#6I've been using it. The experience is amazing!
Some highlights:
* In 7 lines of code, with no javascript, I had my index and view pages live-updating whenever a model changed on the server! It is spooky good. Nothing against JavaScript, but now I only maintain one ERB view and no SPA. This is a large dev speed multiplier.
* If you have a page with a parent object where you add/delete child items, you make your actions delete/add the child on the server, and once the object is updated, the page just re-renders with no visible redirect/reload.
https://dev.37signals.com/turbo-8-released/
A diff with comments: https://github.com/basecamp/turbo-8-morphing-demo/pull/4/fil...
Re: Unpoly is what Hotwire should have been
#7From the main unpoly page: > Get powerful new HTML attributes to build dynamic UI on the server. Works with any language. Gracefully degrades without JavaScript. I wouldn't call being completely dependent on the server "graceful degradation". App server and web server should not be conflated. A degradation should imply the site is still up but some interactions don't work or work intermittently. You can trivially ach…
Re: Unpoly is what Hotwire should have been
#8This is an extraordinary amount of magic. I think I'll just stick to Vite/React, thanks.
Re: Unpoly is what Hotwire should have been
#9From the main unpoly page: > Get powerful new HTML attributes to build dynamic UI on the server. Works with any language. Gracefully degrades without JavaScript. I wouldn't call being completely dependent on the server "graceful degradation". App server and web server should not be conflated. A degradation should imply the site is still up but some interactions don't work or work intermittently. You can trivially ach…
Not everything needs to be an SPA. Separation of concerns is important but not always required.
If it wasn't already difficult enough to bootstrap a project especially these days. To any entrepreneurs reading, if this is the junk your devs come up with run away as fast as you can.
Re: Unpoly is what Hotwire should have been
#10From the main unpoly page: > Get powerful new HTML attributes to build dynamic UI on the server. Works with any language. Gracefully degrades without JavaScript. I wouldn't call being completely dependent on the server "graceful degradation". App server and web server should not be conflated. A degradation should imply the site is still up but some interactions don't work or work intermittently. You can trivially ach…