Live data from Hacker News

An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

web.archive.org

41–50 of 132 posts

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#41

Earlier quoted context omitted.

Better. Much, much better than webpack/vite imo.

A specific example? Genuinely asking (codebase is Typescript/ES6 modules).

> Genuinely asking (codebase is Typescript/ES6 modules)

No luck for you then. Rails doesn't seem to love typescript: https://github.com/rails/importmap-rails/issues/124

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#42
post #32
post #6

I was pretty sad to see the pattern matching PR reverted for 7.1 [0], but I guess the Rails team wants to make sure they nail the execution (?) even if that means being late to the pattern matching party, which is arguably one of the best additions to Ruby since the 1.9.3 hash syntax. For now, I'm good with the little gem that kddnewton put together ( https://github.com/kddnewton/rails-pattern_matching ). [0]: https:…

I don’t understand the issue - why was it reverted? Are there multiple ways to do pattern matching? Why?

I think it was reverted because the Rails team isn't sure what values of a model should be available to pattern match, and how each attribute or association should be pattern matched.

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#43

I was a devoted rails fan 10 years ago, but haven't looked back since full stack typescript. What's the general vibe on RoR nowadays?

I went from a full stack typescript project to a rails project and honestly I hate it.

The Ruby language is great if you want to jerk off about how concise your code is but programmers end up creating overly abstract, write-only code.

There’s so much magic that it’s hard to trace the code to see where stuff comes from.

Abstractions are over-engineered. Serializers should be simple, async functions that are easy to step through and debug. Instead you have serializer relations? Delegates, etc.

Don’t even get me started on updating rails itself. It’s a massive pain every time and you quite often see projects that are multiple major versions behind.

In typescript it’s common to integrate multiple independent libraries into your own framework. This is great because if I need to update my database library I can focus on that specific part of the code. Updating rails means everything could potentially break.

Oh and there’s no type system so good luck.

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#44
post #32
post #6

I was pretty sad to see the pattern matching PR reverted for 7.1 [0], but I guess the Rails team wants to make sure they nail the execution (?) even if that means being late to the pattern matching party, which is arguably one of the best additions to Ruby since the 1.9.3 hash syntax. For now, I'm good with the little gem that kddnewton put together ( https://github.com/kddnewton/rails-pattern_matching ). [0]: https:…

I don’t understand the issue - why was it reverted? Are there multiple ways to do pattern matching? Why?

This comment describes well. https://github.com/rails/rails/pull/45553#issuecomment-11795...

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#45

I was a devoted rails fan 10 years ago, but haven't looked back since full stack typescript. What's the general vibe on RoR nowadays?

Rails is unfortunately much slower, and it’s quite coupled to the concepts of server-side rendering and OOP MVC. Making Rails work with a modern frontend feels pretty hacky compared to using a full-stack TypeScript framework.

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#47

I was a devoted rails fan 10 years ago, but haven't looked back since full stack typescript. What's the general vibe on RoR nowadays?

Switched to Elixir/Phoenix a few years ago and have never looked back. Absolutely a 100% improvement on Rails in every way (except the availability of work!)

Elixir is great. I love it!

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#48

I was a devoted rails fan 10 years ago, but haven't looked back since full stack typescript. What's the general vibe on RoR nowadays?

I love TypeScript, but Rails has a wonderful ecosystem of libraries that just feels unbeatable for the backend. For some reason (hot take incoming) the JS community seems to hate working with each other and improving existing libraries. The Ruby community seems to rally around improving our libraries (gems) rather than reinventing them every year.

I take it you’ve never tried to install nokogiri?

Re: An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

#50

I was a devoted rails fan 10 years ago, but haven't looked back since full stack typescript. What's the general vibe on RoR nowadays?

Switched to Elixir/Phoenix a few years ago and have never looked back. Absolutely a 100% improvement on Rails in every way (except the availability of work!)

What is so nice about Elixir/Phoenix?

I understand that it is functional, which seems neat, but how does that translate into better app development?

Post reply on HN