Live data from Hacker News

Rails 7.1 Released

github.com

31–40 of 245 posts

Re: Rails 7.1 Released

#31
post #9

Rails on the backend doesn’t get the credit it deserves. On the front-end it’s been a mess for a really long while now though

I love the new hotwire stuff. What don’t you like about thd front-end?

Asset pipeline is a hot mess: https://fly.io/ruby-dispatch/making-sense-of-rails-assets/

Propshaft should bring sanity back to it, but its going to be a while before that's mainstream.

Re: Rails 7.1 Released

#32
I hope to see the Hotwire dependency dropped one day. I love Rails and Hotwire, but I wish the latter were also a community tool. When TypeScript support was discontinued, DHH commented:

> This project has been founded, funded, and maintained predominantly by the resources and investment of 37signals. We will set the direction as we see fit...

With TensorFlow recently discontinuing support for Windows, it's very concerning to me that one day one person or organization decides that "we will set the direction".

They don't even try to use nicer language. Don't get me wrong, I respect the work and effort. But 37signals are no saints. There was a scandal, and employee exodus not so long ago.

Hotwire is so deeply integrated into Rails, so Rails is even more 37signals' tool than ever before. Before we had webpack, and JavaScript libraries that sometimes were not easy to use. Now things are easier, but instead of JS libraries we've gotten 37signals dependency, which is VERY concerning.

Re: Rails 7.1 Released

#33
post #17

Earlier quoted context omitted.

I agree. What are options here? Rails in API-only mode?

But why? So many more performant frameworks for this in strongly typed languages to boot.

Which ones? Never saw another one which comes with the same comfort of batteries included like rails. For example having database migrations built in etc.

Re: Rails 7.1 Released

#34
post #5

Earlier quoted context omitted.

I'm working on a fairly recent Rails 7 code base. We initially started using Stimulus, but are now considering switching to React for a few reasons: - if you're looking to hire frontend engineers, the candidate pool for React is a few orders or magnitude bigger - it's getting harder and harder to find vanilla JS packages that you can wrap in Stimulus controllers for common tasks, compared to finding React packages -…

> if you're looking to hire frontend engineers, the candidate pool for React is a few orders or magnitude bigger Can't these candidates quickly learn Hotwire? Seems like its much simpler than React (less moving parts)

You'd be surprised how many candidates would prefer to just take another job. If for no other reason than resume building with the word react.

Re: Rails 7.1 Released

#36
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

#37
post #17

Earlier quoted context omitted.

I agree. What are options here? Rails in API-only mode?

But why? So many more performant frameworks for this in strongly typed languages to boot.

That’s what a lot of people do. The value is still about convention over configuration IMO. If we are building a REST API, typical CRUD, you can go a long way with using Rails there and using something else when you need the performance or a certain feature.

Re: Rails 7.1 Released

#38

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.

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

#39
post #33

Earlier quoted context omitted.

But why? So many more performant frameworks for this in strongly typed languages to boot.

Which ones? Never saw another one which comes with the same comfort of batteries included like rails. For example having database migrations built in etc.

Yeah exactly. All that boilerplate stuff is such a pain to write or maintain long term.

Re: Rails 7.1 Released

#40
post #2

Currently stuck on a fairly large code base on rails 6 with a ton of react and trying to upgrade to the new “non”-JS way with Hotwire. Wish me luck Rails is great when you stick with the defaults and a land of pain as soon as you leave them.

Loose typing is a nightmare. The youngins always learn the hard way.

20+ years of experience here, I happily reach for loosely typed languages in most circumstances.
Post reply on HN