News for hackers. Stuff that matters.
Re:Rails 7.1 Released by crystaln on Friday October 06, 2023 @01:38AM (#37787417)
Would anyone start a new project with Rails today?

If someone suggested using Rails for a new project to me today, I would show them the door.

There are so many more mature frameworks in more robust and performant languages.

IMO the only reason to use Rails today is if you’re too uncurious to learn something better.

Re:Rails 7.1 Released by roboben on Friday October 06, 2023 @01:40AM (#37787425)
Please name a few with the same comfort of having most things built-in. One example: database migrations. In the JS world it is knex all over and it is much less comfortable than ActiveRecord.
Re:Rails 7.1 Released by arrowsmith on Friday October 06, 2023 @01:46AM (#37787473)
Phoenix
Re:Rails 7.1 Released by michaelteter on Friday October 06, 2023 @06:15AM (#37788890)
With Ash, even more attractive.
Re:Rails 7.1 Released by arrowsmith on Friday October 06, 2023 @07:24AM (#37789283)
I really need to check Ash out, it seems be a rising star!
Re:Rails 7.1 Released by Rapzid on Friday October 06, 2023 @01:52AM (#37787511)
Personally I would rather use Fastify+MikroORM.

Or Asp.Net.

Or Flask with SqlAlchemy + the migration and validation libs(marshmallow?)

Or whatever is good in Golang.

Re:Rails 7.1 Released by fredrikholm on Friday October 06, 2023 @02:46AM (#37787846)
> Or whatever is good in Golang.

There is no such thing in Go and most likely will never be given the perspectives held by the greater Go community (less is more).

Comparatively, the Ruby community is the complete inverse: any perceived friction can and should be abstracted to be (subjectively) nicer. It's why some people love the language, and it's also why some people dislike the language.

Re:Rails 7.1 Released by 0xblinq on Friday October 06, 2023 @01:10PM (#37793352)
And none of those combinations reach 5% of the features Rails provides. These answers are incomplete and hide the underlying problem: You have to tie together 10s of third party libraries or services, or alternatively reinvent the wheel and implement everything from scratch. That's the point.
Re:Rails 7.1 Released by Rapzid on Friday October 06, 2023 @06:18PM (#37797074)
Asp.Net has 5% of the features of Rails? Which 5%? What of the 95% missing do you need?
Re:Rails 7.1 Released by 0xblinq on Saturday October 07, 2023 @12:15AM (#37798982)
Sorry, I don’t know anything about Asp.net.

My comment definitely applies to the other two options you listed.

Re:Rails 7.1 Released by winrid on Friday October 06, 2023 @01:54AM (#37787518)
I wonder if anyone here has used ebean and the generated db migrations? I was looking for a java ORM that's like Django's ORM with the built in generated migrations tool which is great for a lot of projects - it seems like ebean is pretty much the best choice? and now with virtual threads I don't have to worry that it's not reactive.
Re:Rails 7.1 Released by mvdtnz on Friday October 06, 2023 @03:35AM (#37788113)
ASP.NET Core. And database migrations are not uncommon in web frameworks at all.
Re:Rails 7.1 Released by neonsunset on Friday October 06, 2023 @08:48PM (#37798058)
Easily ASP.NET Core + EF Core combo thanks to strong typing which is a developer productivity boost in back-end, and performance on the opposite end of spectrum suitable for high scalability.

(but then again, if you are doing complex migrations through framework in-language, you might be setting yourself up for failure)

Re:Rails 7.1 Released by gherkinnn on Friday October 06, 2023 @01:47AM (#37787477)
Why not? I have seen or worked on too many projects that would have been better off using Rails/Laravel/Django instead of whatever cobbled together mess was chosen instead.

Not saying that those are the best choice under all circumstances but they certainly aren’t wrong.

Re:Rails 7.1 Released by mvdtnz on Friday October 06, 2023 @03:34AM (#37788103)
The alternative to Rails is not "cobbled together mess".
Re:Rails 7.1 Released by gherkinnn on Friday October 06, 2023 @09:09AM (#37790296)
It is not, no. But for whatever reason too many people gravitate to an unreasonably bloated and badly constructed mess of tools and things and services. All for the sake of planet scale.
Re:Rails 7.1 Released by 0xblinq on Friday October 06, 2023 @01:08PM (#37793326)
It's either a cobbled together mess or reinventing the wheel (framework). There are not many more options.
Re:Rails 7.1 Released by crystaln on Friday October 06, 2023 @02:11AM (#37787599)
Looking at the new Hotwire stuff. It’s neat from a technical perspective but looks dreadful to me. Why double down on a sloppy backend language when hardly any of the needed logic for a web application is backend? Especially when the alternatives include a full stack of TypeScript, a robust, performant, strongly typed, fantastically tooled language?

I was an RoR developer for a decade. These code bases do not age well. The test requirements of loosely typed languages are so much greater. The lack of ability to automate refactors alone is enough to avoid ruby.

Re:Rails 7.1 Released by wiseowise on Friday October 06, 2023 @02:52AM (#37787871)
What would be fully stack TS alternative to rails?
Re:Rails 7.1 Released by 0xblinq on Friday October 06, 2023 @01:06PM (#37793308)
Ha, that's the problem! Everyone will give you a different list of 143 packages (minimum).

Also, the list they gave you will be different next month.

Re:Rails 7.1 Released by spariev on Friday October 06, 2023 @02:55AM (#37787887)
Last time I checked it is perfectly possible to use anything including TS via jsbundling-rails and esbuild, so honestly I don’t understand what is the problem here.

I’m also on a fence re Hotwire, but apparently it works for them in Basecamp and Hey, so that’s what they are investing into.

Anecdotally, recently in Ruby shops I see an increase in new projects using Hotwire as a push back against bloated and hard to maintain React front ends and people are delighted how everything is easier now. RoR codebases are not the only ones which did not age well, I’ve seen quite a few React/NextJs legacy projects I would prefer not to touch at all. So I don’t think technology is the main culprit here.

Re:Rails 7.1 Released by 0xblinq on Friday October 06, 2023 @01:05PM (#37793290)
In my experience codebases that do not age well tell more about the developers and the managers than the tech stack.

I've seen marvels and disasters in every stack.

Re:Rails 7.1 Released by throwthrow5643 on Friday October 06, 2023 @06:22AM (#37788920)
Python is slower than ruby.
Re:Rails 7.1 Released by gls2ro on Friday October 06, 2023 @10:40AM (#37791416)
> There are so many more mature frameworks

Please name "many more mature" frameworks. I am curious about how many web frameworks are still actively maintained today.

Please note for me, mature also includes age. So you have to state frameworks that are at least older than 2005 (I would also accept created in 2005).

Re:Rails 7.1 Released by Alifatisk on Friday October 06, 2023 @02:40PM (#37794526)
Rails is great for new projects, the opinionated structure and the Convention over Configuration is what makes it scale well!