News for hackers. Stuff that matters.
Re:Stimulus.js 2.0 by tpetry on Friday December 04, 2020 @02:02PM (#25306272)
Htmx is more like all „we try to solve everything for you but fail“ solutions. The good part of stimulus is that it is only a binding library, no automatic content refetch etc. solution
Re:Stimulus.js 2.0 by hopsoft on Friday December 04, 2020 @02:08PM (#25306345)
I think the much touted "NEW MAGIC" will be the thing that does the automatic content refresh.
Re:Stimulus.js 2.0 by nickjj on Friday December 04, 2020 @02:15PM (#25306421)
> I think the much touted "NEW MAGIC" will be the thing that does the automatic content refresh.

The StimulusJS handbook has an automatic content refresh example at https://stimulusjs.org/handbook/working-with-external-resour....

As for NEW MAGIC, DHH mentioned it will have a Rails server side aspect to it so I don't think we can compare these tools directly.

He did say other server side frameworks could implement similar behavior too but it would involve the framework having built-in support for websockets and job queues. This is based on a question I just asked him on Twitter at https://twitter.com/dhh/status/1334953167327547397.

So it sounds like NEW MAGIC will probably make it super easy to push / broadcast stuff from the server to the client, but to get everything working with a really nice API and it being seamless will require a substantial amount of work if you planned to re-invent it in another framework.

Re:Stimulus.js 2.0 by tpetry on Friday December 04, 2020 @03:41PM (#25307612)
The new turbolinks they use on hey.com is using a concept named „portals“ so different parts of the web application can be refreshed independently. My linked inside hey.com articles are very interesting.
Re:Stimulus.js 2.0 by nickjj on Friday December 04, 2020 @03:56PM (#25307827)
Yeah that's the interesting part. It sounds like maybe there will be some overlaps in Turbolinks 6 and NEW MAGIC when it comes to partial updates.

Maybe for basic partial page updates where you don't need to broadcast something to every connected client over websockets then Turbolinks 6 will be enough on it own. If that ends up being the case that's amazing because it'll be fully client side.

In any case the near future is looking to be the best its ever been for developing very nice feeling apps without going the SPA route with any back-end technology.

Re:Stimulus.js 2.0 by sandebert on Friday December 04, 2020 @02:52PM (#25306884)
How does htmx fail?
Re:Stimulus.js 2.0 by arvindamirtaa on Thursday December 17, 2020 @02:30AM (#25453459)
Seriously!

I've been following them since the intercooler days and they've been great (functionally) although maybe a little drowned out by all the SPA chatter. Still a great library IMO.