News for hackers. Stuff that matters.
Re:Hotwire: A new old way to build web apps by jonstaab on Thursday January 28, 2021 @01:01PM (#25945925)
Maybe this would work for simple websites. But for web apps, it's a hard pass for me. For context, I write a web-based POS application, and waiting for a network request on every micro interaction is a no-go.

There are lots of other problems with this approach that could be solved, but aren't immediately obvious, such as (similar to React) over-rendering. If someone has their focus in an input within the frame that gets swapped out, they're going to lose their focus. This has implications for accessibility as well as just regular usability.

Re:Hotwire: A new old way to build web apps by Scarbutt on Thursday January 28, 2021 @06:58PM (#25951345)
For micro interactions Stimulus covers that part, which is a small client-side JS framework.
Re:Hotwire: A new old way to build web apps by midrus on Friday January 29, 2021 @04:41PM (#25963014)
The focus thing is as easy to fix as just not swapping that component.

Certainly you need a different mindset to use this technique. If you try to do it the same way you do SPAs you will find a lot of problems of course

Re:Hotwire: A new old way to build web apps by throwaway08320 on Thursday January 28, 2021 @08:55PM (#25952617)
> web-based POS application

That's a hard pass for me!

Re:Hotwire: A new old way to build web apps by mattkevan on Thursday January 28, 2021 @02:17PM (#25947410)
Hey, the webapp Hotwire was extracted from isn’t a webapp?
Re:Hotwire: A new old way to build web apps by dbbk on Thursday January 28, 2021 @06:47PM (#25951203)
It is a web app but not a good one.
Re:Hotwire: A new old way to build web apps by cercatrova on Thursday January 28, 2021 @03:42PM (#25948881)
People say that Hey is definitely not as responsive as other client-side web apps like those made with React.