News for hackers. Stuff that matters.
Re:React I love you, but you're bringing me down by BilalBudhani on Tuesday September 20, 2022 @02:41PM (#32916057)
I don't agree with you.

I have been doing Rails development for past 10 years now and I never faced a dilemma where the framework took a direction which isn't aligned with its core vision.

I have been just trying to find a similar tool for frontend where I don't have to keep rewriting the entire codebase.

Re:React I love you, but you're bringing me down by itake on Tuesday September 20, 2022 @06:40PM (#32918739)
What about the webpack rails7 situation? I feel like rails has guessed wrong too many times about FE (coffeescript, asset pipeline, websockets) that I don't trust them to deliver their own stack.
Re:React I love you, but you're bringing me down by the_gastropod on Tuesday September 20, 2022 @09:09PM (#32919826)
I'm not sure this is a fair representation. Rails didn't "guess wrong" too many times. They chose the best option available at the time. Remember, CoffeeScript was used in Rails in 2010! Brendan Eich even borrowed many ideas from CoffeeScript in subsequent versions of JavaScript. Ditto, the asset pipeline solved a great number of problems for many years. With recent advances in web browsers, many of these problems aren't really problems, so it's less relevant, and Rails has to take advantage of import maps as an alternative.
Re:React I love you, but you're bringing me down by coffeefirst on Sunday September 25, 2022 @11:16AM (#32972135)
This is kind of a great example because Django did the opposite: insist on having no frontend opinions.

As a result, Django left its users completely on their own, while Rails made choices that wouldn't last the test of time.

Given how chaotic the frontend ecosystems have been over the past decade, I'm not sure there was a "right" answer in hindsight.

Re:React I love you, but you're bringing me down by buscoquadnary on Tuesday September 20, 2022 @06:10PM (#32918486)
You are correct, Rails and Ruby are one of the few places I haven't felt like there's been constant and unedning churn, I attribute it to the incredible flexibility and power of the Ruby programming language, which incidentally is my favorite language to work in.
Re:React I love you, but you're bringing me down by ajmurmann on Tuesday September 20, 2022 @05:48PM (#32918246)
I think Rails was able to avoid this because of its modular structure and ease to write gems that extend the framework in a way that fits your project's circumstances and needed tradeoffs. As DHH famously said Rails is omakase, but you can also make reasonable substitutions.
Re:React I love you, but you're bringing me down by nirvdrum on Tuesday September 20, 2022 @07:24PM (#32919099)
It partly became modular because it merged with Merb, which was an alternative modular web framework that competed with Rails for a little while.