Hacker News new | ask | show | jobs
by obiefernandez 2025 days ago
Good timing. There was talk of a fork brewing...
1 comments

Yeah. This is happening with all libraries by basecamp: They release something, they don‘t work on it for months (no commits, many open pull requests) and people believe it‘s dead. Then one day (today) they out of the blue release a new version which nobody was expecting.

Wouldnt stimulus and turbolinks not work so great i would prefer using different libraries.

I like these libraries but have the same concerns. One alternative that might be worth a look is htmx (the new library based on intercooler.js):

https://htmx.org/

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
I think the much touted "NEW MAGIC" will be the thing that does the automatic content refresh.
> 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.

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.
How does htmx fail?
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.