Live data from Hacker News

Rails 6.1

weblog.rubyonrails.org

1–10 of 87 posts

Re: Rails 6.1

#4
Lots of good stuff in here, including much more support for using UUIDs as PKs.

My favorite new feature is "delegated type" in ActiveRecord to offer a new way to map class hierarchies onto database tables. I wrote a blog post about it[0], but the actual PR is very readable as well[1].

[0] https://www.stevenbuccini.com/how-to-use-delegate-types-in-r...

[1] https://github.com/rails/rails/pull/39341

Re: Rails 6.1

#6
It's a really nice time to be a Ruby / Rails developer. Rails itself has made some really nice improvements with this release and there is also the "NEW MAGIC" should be following in the next couple of days which is currently being sold as what Rails was to the back end, this will be to the front end.

Ruby 3 is also just a few days away which brings optional type checking to helps add some additional structure to larger code bases.

Then in the wider community you have projects like Hanami 2.0 looking to launch next year which aims to bring all of the structure of "clean architecture" approaches and best practices with the simplicity and expressiveness of Ruby.

Re: Rails 6.1

#8
post #4

Lots of good stuff in here, including much more support for using UUIDs as PKs. My favorite new feature is "delegated type" in ActiveRecord to offer a new way to map class hierarchies onto database tables. I wrote a blog post about it[0], but the actual PR is very readable as well[1]. [0] https://www.stevenbuccini.com/how-to-use-delegate-types-in-r... [1] https://github.com/rails/rails/pull/39341

Does a "delegated type" work with preloading associations, ala "includes"? This remains a pain point with many polymorphic associations in Rails, but not sure how the new functionality handles if, if it does at all.

Re: Rails 6.1

#9
"rafaelfranca released this 1 hour ago · 324 commits to master since this release"

That's the sign of a very actively maintained project!

(To clarify: those 324 commits didn't all happen in the past 60 minutes, but it does show that there's a huge amount of development activity going on around Rails core)

Re: Rails 6.1

#10
>Error Objects

Active Model’s errors are now objects with an interface that allows your application to more easily handle and interact with errors thrown by models. The feature was implemented by lulalala and includes a query interface, enables more precise testing, and access to error details.

This has been in the work since Rails 5.x and I believe Lulalala extracted it from his work on Gitlab. And it was lot of hard work.

Since both Github and Shopify now runs on Master, I dont think there are any other open source web framework that is more battle tested than Rails.

Still waiting for New Magic though.

Post reply on HN