News for hackers. Stuff that matters.
Re:Where is Ruby Headed in 2021? by shafyy on Friday November 19, 2021 @03:57AM (#29275180)
I feel very similarly with Ruby and especially Rails. After working in Rails for multiple years, I'm now doing a freelance gig where the tech stack is React, NodeJS with TypeScript on Firebase Cloud Functions, and it almost sucks out all of the joy of programming.

Making software in Rails feels creative, and the act of writing code in itself is very satisfactory.

A good opportunity to re-read the Rails Doctrine: https://rubyonrails.org/doctrine

Now, I know that this is very subjective and I can see how others might prefer other languages or frameworks, so I'm not adding this here to start a discussion. Just to share my feelings :-)

Re:Where is Ruby Headed in 2021? by chowchowchow on Friday November 19, 2021 @10:30AM (#29278167)
I had this exact realization getting ramped up in a large rails codebase: ruby is optimized for experience of the code author, while most of the things people miss from it (explicit imports, static types) help with code maintenance and codebase scalability.

The small/large project distinction makes sense to me. I think there’s a clear point in project size where the joy of writing code has to be deprioritized behind maintainability and simplicity, even if it becomes less fun to write code that way.

Re:Where is Ruby Headed in 2021? by horsawlarway on Friday November 19, 2021 @10:59AM (#29278496)
It's not a pleasant experience to come on board and deal with a typeless, styleless, inconsistent mess. And that's what Ruby on Rails will create, unless you spend an inordinate amount of effort on adding back all the tooling you need to make functional software in large groups.

Even then - there's no real path to a mature and maintainable language/framework. In my area (Atlanta) we're seeing a glut of RoR devs available because a lot of the large employers have given up and shut down the RoRs projects in favor of anything more suitable to teams in the 15 to 500 engineer range. Usually this has been typescript/java/.net.

Even within the RoR guys I know - a LOT of them are trying to get out and work with something else (several folks I know are moving to elixir)

Re:Where is Ruby Headed in 2021? by joelbluminator on Saturday November 20, 2021 @09:23AM (#29288298)
> a LOT of them are trying to get out and work with something else (several folks I know are moving to elixir)

Dumb move, Elixir has around 1000 job openings in the U.S while Ruby has 35000. In fact I find it pretty hard to believe they can't get a Ruby job in the U.S, and they choose Elixir from all stacks as a solution to their problem. Sounds to me like they just wanna try Elixir and can't really build a good argument in their head on why they're doing it. Jobs-wise things are definitely not gonna be easier for them with Elixir.

Re:Where is Ruby Headed in 2021? by zerocount on Wednesday November 24, 2021 @06:02PM (#29336228)
I agree. Elixir is just too obscure.
Re:Where is Ruby Headed in 2021? by ksec on Friday November 19, 2021 @04:47PM (#29282995)
>Even then - there's no real path to a mature and maintainable language/framework.

Hopefully that is what Github and Shopify brings to the table. Instead of just using Rails they are now actively shaping its future direction.

>because a lot of the large employers have given up and shut down the RoRs projects

My impression is that the vast majority of Rails communities don't care much about its ecosystem growth. They are just happily using it.

Re:Where is Ruby Headed in 2021? by tmm84 on Sunday November 21, 2021 @10:18PM (#29302364)
This has been my experience. I gave into learning Ruby and how things can be written several different ways. Even when tools like Rubocop and the like are used it still can result in a codebase that is very difficult to use.

My opinion, typed/tooled is useful when the desired solution/behavior/concept is complex.

Re:Where is Ruby Headed in 2021? by AlchemistCamp on Friday November 19, 2021 @11:39AM (#29279076)
Elixir is also dynamically typed but due to its pattern matching and immutability, I've found it eliminates about 90% of the issues that I've found with dynamic typing in other languages.

It's still got most of what made Ruby a joy to work with and several unique advantages, too!

Re:Where is Ruby Headed in 2021? by montblanc on Sunday November 21, 2021 @01:45PM (#29298628)
Lots of people complain about Elixir's lack of types and possible incomprehensible mess caused by Macros. It kinda proves to me that everyone has different tastes in software and that's about it, there is no objective truth to any of it. For me Java code is a nightmare.
Re:Where is Ruby Headed in 2021? by shafyy on Saturday November 20, 2021 @09:45AM (#29288502)
> I think there’s a clear point in project size where the joy of writing code has to be deprioritized behind maintainability and simplicity, even if it becomes less fun to write code that way.

I completely disagree. Joy of writing code must always be a top priority, also in large codebases. There are enough examples of where Ruby (on Rails) is used in large codebases with GitHub, Shopify, etc.

I guess it's a matter of personal match, too. Some people match better with TypeScript, others better with Rails. Nothing wrong about that.

I'm aware that they use a heavily modified version of Rails, but it still is Rails in the fundament.

Re:Where is Ruby Headed in 2021? by montblanc on Sunday November 21, 2021 @01:47PM (#29298643)
Gitlab, Discourse, Mastodon, Forem (dev.to) etc etc. All are big OSS software and are maintainable and seem to have quite a high velocity feature development. If it was an unmaintainable mess the whole opens source thing wouldn't have worked as well as it does for them. So maybe we should steer the debate towards - it CAN be done (as you can see) but it's more difficult with Rails (which I think is false).
Re:Where is Ruby Headed in 2021? by chowchowchow on Sunday November 21, 2021 @07:14PM (#29301161)
Well, sometimes joyfully written code can be less than joyful for those who have to read & maintain it…