Hacker News new | ask | show | jobs
by cutler 2025 days ago
I have great hopes that Stimulus 2.0 and Ruby 3.0 will put Rails back in the spotlight as the sane alternative to SPA abuse. Ruby and Rails have some really talented people on their teams and there's something special about the Ruby language which makes it such a fertile environment for innovation. Only Clojure compares in this respect.
4 comments

Rails is already the sane alternative. Any full stack framework is. DotNet, Laravel, Django, Rails...

If you think you need a JS framework to handle your UI, you've already lost, and you're doomed to reinventing wheels that these technologies have already perfected.

Thank you for saying this. I thought it but didn’t write it as I don’t want to offend.

The amount of extra work and complexity that a separate FE introduces requires serious benefits on the other side of the equation.

Isn't Stimilus a JS framework?
StimulusJS is one step up from JQuery and formalizes a lot of jQuery patterns that I'd come across - data-target, data-event attributes, etc.
Not really. More like super simple and light helpers for dom manipulation - lets you add interactivity with minimal trouble.
Rails is dope. And it works really well with universal react rendering if you need that with react_on_rails.
Came to say the same. I've found it to be a really great productive combination. I can sprinkle in React components where the UI is especially rich and use Rails for everything else.
I've got even greater hopes for the NEW MAGIC that @dhh has been hinting about

Apparently Stimulus 2.0 is part of that directional change

Tweets: https://twitter.com/dhh/status/1334916143010680833?s=20

SPA abuse is the predictable and highly unimaginative result of framework overuse. Hoping a different framework will somehow be a solution is exceedingly optimistic.