Live data from Hacker News

An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1

web.archive.org

111–120 of 132 posts

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

#111
post #18

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?

what the heck is full stack typescript

Writing typescript code that compiles to javascript code that runs on a platform like node.js, and writing typescript code that compiles to javascript that run in a web browser.

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

#112
post #67

I love Rails and how simple and boring[0] it is, and appreciate how it keeps evolving and growing. I've dabbled with some Javascript frameworks and Elixir/Phoenix, but always come back to Rails and forget just how fast and productive I can be. A lot of people complain about it, but I feel like Active Record just can't be beat, and helps me feel so productive. Add Stimulus and Turbo and the level of UI fidelity possib…

I've got two problems with Rails:

(1) IMHO they've flubbed the progressive typing. I'm spending some time learning Typescript and React. And it's amazing. The type system is flexible, powerful, and works well with an IDE. It's just way faster to write when code gets complexer. The fact that it's null and type safe is the cherry on the top. Amazing that Javascript with all of it's warts can be turned into this.

(2) They've never really got the front end story right. Coffeescript was a dead end, then Turbolinks was the thing, and now it's Hotwire. None of them are really right. Rails will always be a primary SSR paradigm. They just need an easy way to do basic dynamic things like show/hide fields and form error checking clientside. Ideally something written in Ruby and well integrated into the form builder.

A bonus for (3) is that the Rails UI is ugly out of the box. Wish they'd have more integrated UI components that are production ready.

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

#113
post #10

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?

> What's the general vibe on RoR nowadays? Most people that use it are fine and productive. Because of lazy evaluation, type issues persist though. Plenty of instances of trying to call string methods on integers, and array methods on nil, and Rails devs in denial that that's a big problem as the app continues to grow.

> and Rails devs in denial that that's a big problem as the app continues to grow.

As someone who maintains Rails 3 apps ad infinitum, this is where things break down with Rails applications. You can create applications very quickly with Rails if you stay within the conventions. But as the app grows, that discipline breaks down and the structure starts to suffer.

This is true for a lot of web applications. But I think the problem is worse for Rails because it's so easy to get started and create apps. That ease comes back to bite you -- as a giant legacy Rails app that no one on the team understands and no one is interested in fixing or maintaining.

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

#114
post #9

Earlier quoted context omitted.

At the backend side, it makes easy to build websites. However, the UI layer is a bit complex to integrate with common framework libraries like Vue and React. Although, I still use it in some projects :)

I'm not sure why you think it's difficult to integrate with Vue and React? Maybe InertiaJS [0] would help. [0] https://inertiajs.com/

OMG thank you! So many times I've wished for a nice way to leverage React UI components within Rails without the nuisance of APIs, client-side state, etc. This appears to fit that bill nicely.

Are there any glaring reasons one would not want to use this library?

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

#115
post #11
post #8

Earlier quoted context omitted.

Shopify and Github being run on Rails sorta put it to bed a long time ago.

It really didn't otherwise there would be a lot more than just those two, everyone would follow their beat. We all ran rails 10 years ago and realized that unless you're a large corp with money to burn on 'ecosystem' then Rails doesn't make a lot of sense. I want to like rails and to see it do well, but it's not keeping pace with the rest of its peers. As competitive as web dev is these days, it's not sufficient to j…

LOL at the idea of JS frameworks having staying power. Is this GPT?

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

#116

Earlier quoted context omitted.

I have to agree on this one, it feels like some people are in denial of type issues within the Ruby / Rails community. I've been experimenting with Rbs, Sorbet & Contracts though, they have their potential.

The UX is terrible. Separate file for types is just inconvenient. I wish it was something like Python's optional typing

Optional typing in Ruby would be so awesome

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

#117

Earlier quoted context omitted.

Still using it, still highly productive. Not doing as much Rails work as I was 10 years ago but that's due to a change in the nature of my business. We still use it and Sinatra for the bulk of our Internet-facing and internal stuff.

If you use Sinatra take a look at roda. It’s fast and elegant.

I've been meaning to, several people have recommended it to me!

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

#118
post #51

Earlier quoted context omitted.

I read that comment, but unless you know Ruby most of the specifics are meaningless

think of pattern matching being implemented via methods on an object which return a hash/array (deconstruct and deconstruct_keys). ActiveRecord objects wrap an hash of attributes, but are also normal objects which have instance variables and methods plus some hooks and specific API that can be expected to be overriden. So it's unclear how the method should behave: just read from the hash? Invoke some specific method?…

No post body was provided.

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

#119
post #112
post #67

I love Rails and how simple and boring[0] it is, and appreciate how it keeps evolving and growing. I've dabbled with some Javascript frameworks and Elixir/Phoenix, but always come back to Rails and forget just how fast and productive I can be. A lot of people complain about it, but I feel like Active Record just can't be beat, and helps me feel so productive. Add Stimulus and Turbo and the level of UI fidelity possib…

I've got two problems with Rails: (1) IMHO they've flubbed the progressive typing. I'm spending some time learning Typescript and React. And it's amazing. The type system is flexible, powerful, and works well with an IDE. It's just way faster to write when code gets complexer. The fact that it's null and type safe is the cherry on the top. Amazing that Javascript with all of it's warts can be turned into this. (2) Th…

I agree with your number 2 especially, but think that Stimulus is doing a fairly good job at it now. The Turbo side of Hotwire still feels like a bit of a mess, especially once you try to do a lot with it. But little Stimulus controller additions here and there are (with the main exception of managing a lot of verbose data attributes) almost a delight to work with.

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

#120
post #45

Earlier quoted context omitted.

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.

I'll give you the slow, but "modern" frontend is a breeze. Webpacker (yes, the deprecated one, newer solutions are worse) handles React beautifully, and my graphql API definition gets seamlessly converted into typescript types. If anything, it often feels even easier than the code sharing I've experienced in node-land.

What are you using for GraphQL support in Rails? I was just looking into this yesterday.
Post reply on HN