News for hackers. Stuff that matters.
Re:Rails 7.1 Released by FBISurveillance on Friday October 06, 2023 @12:55AM (#37787220)
I've been doing Rails since 2005 and love it, but - and that's just my personal preference! - I wish they'd have a stable release cadence (calver like vscode maybe?) and a clearer roadmap/governance.

Maybe it's just me but I just don't like DHH's governance lately. Not in a bad way, but following him on Twitter I just no longer respect him.

Re:Rails 7.1 Released by itake on Friday October 06, 2023 @12:59AM (#37787246)
Coding in rails since 2012 here. I lost faith in rails at 5.2. Active storage was so terrible.
Re:Rails 7.1 Released by roboben on Friday October 06, 2023 @01:26AM (#37787357)
Looking forward to see if and how it evolved in rails 7. In 6 it was really bad too and my tests are flaky because of some weird active storage async stuff. Can't find the id of blobs I have no idea
Re:Rails 7.1 Released by nerdwaller on Friday October 06, 2023 @01:18AM (#37787318)
What is terrible about active storage?
Re:Rails 7.1 Released by itake on Friday October 06, 2023 @02:18AM (#37787639)
My memory is fuzzy, but...

1. all data flow through the rails app (no pre-signed s3 upload or download links for direct uploading).

2. no support for CDNs (I think newer rails versions added support)

3. blobs and attachments were unnecessary abstractions.

3a. Querying was annoying (extra joins) and easy to add n+1 queries.

3b. In my app, images are moderated and it was unclear where to put the moderation metadata (on blobs? attachments? create a new table? why so many tables?) or `deleted_at` type columns.

4. GraphQL gem didn't support it: https://github.com/rmosolgo/graphql-ruby/issues/1777

Re:Rails 7.1 Released by dham on Friday October 06, 2023 @08:52AM (#37790118)
1. Rails has had direct upload since it introduced Active Storage. No one has uploaded files through their servers in a decade

2. What do you mean? Point whatever CDN you want at your origin

3. Maybe

3a. Yes

3b. Metadata or a new table

4. GraphQL is the single worst technology that has ever been adopted. We adopted at my company...twice. Twice we made the same mistake now we're stuck with it for mobile clients. In fact we're stuck on the old Graqphl RB gem that used a DSL instead of classes, which also blocks our Rails upgrade. We've been able to revert everything back to good ole Rest for another part of the app. Be cautious adopting technologies of large companies.

Re:Rails 7.1 Released by itake on Monday October 09, 2023 @08:52AM (#37819939)
1. You are correct for upload, but not for download. Looks like rails 7 added support for presigned urls: https://blog.saeloun.com/2021/09/14/rails-7-adds-expiring-ur...

2. CDN support is via monkey patch: https://github.com/rails/rails/issues/44136

3. yep

4. yep

Re:Rails 7.1 Released by maxehmookau on Friday October 06, 2023 @03:00AM (#37787909)
> Maybe it's just me but I just don't like DHH's governance lately.

It's not really governance, that's kinda the problem. To be fair, he never claimed that he was providing governance. Rails was extracted from basecamp. The impression I get is that he sees Rails as a gift to the community created from the profit-making Basecamp. Which is great; and I appreciate the fact that I've been able to build a career using Rails.

But there is no governance really. Rails goes in the direction that 37signals wants it to, which is largely pretty good. You and I don't get much of a say in it though; especially if DHH disagrees.