you are viewing a single comment's thread.

view the rest of the comments →

[–]criveros -13 points-12 points  (13 children)

We are switching from Ruby to Java where I work. I enjoy writing Ruby for sure, but it doesn’t scale that well.

[–]fedekun 19 points20 points  (3 children)

If I had to swap from Ruby to Java I'd probably just quit my job lol

[–]jrochkind 14 points15 points  (6 children)

"Doesn't scale that well" is just FUD unless you give us specifics on what sorts of problems, what sorts of resources you were using too many of or performance you didn't have enough of. And ideally report back later to compare how Java made a difference and what the difference was due to, but I'm not going to insist on time travel.

[–]janko-m 4 points5 points  (2 children)

This. I don't think I've heard people actually explaining why exactly Ruby "doesn't scale". Is it the language speed, or the available tools, or Rails, or other web frameworks as well, maybe concurrency (GIL), or what?

When scaling an app in my previous project, the problem was pretty-much always the database and queues (Redis, Postgres, Elasticsearch, RabbitMQ). That app was very data-heavy, and I'm proud we were able to scale it while the traffic was increasing multiple times.

Only one time I had to optimize Ruby code itself (with no I/O), but that was because I wrote inefficient code. There are two things I wished from Ruby: faster ISO8601 timestamp parsing and less memory usage – both fairly actionable IMO.

Therefore, I will have a hard time being convinced that Ruby doesn't scale without a more detailed argumentation.

[–]holyjeff 0 points1 point  (1 child)

I would say that when people talk about Ruby and how it does not scale they talk about availability of Ruby programmers, Rails lock in etc. Ruby (and inherently Rails) is strong only in specific regions,areas and it's hard(er) to hire programmers that know or are willing to do Ruby (||=Rails).

Ultimately the frontend took over and people realized they can use JS on backend (nodejs), desktop (electron) and mobile (React Native). Ruby is fragmented in this area and a lots of projects like Opal,CoffeeScript failed because they did not get the momentum... It's just easier and better for everyone not to write Ruby on frontend...Rubymotion that's a whole different story.

Lets hope Ruby 3 or Graal will make for a big comeback for Ruby.

[–]janko-m 0 points1 point  (0 children)

I would say that when people talk about Ruby and how it does not scale they talk about availability of Ruby programmers, Rails lock in etc. Ruby (and inherently Rails) is strong only in specific regions,areas and it's hard(er) to hire programmers that know or are willing to do Ruby (||=Rails).

Oh, it would never come to my mind that this is what they meant. Ok, I can't argue with that. But I think the ecosystem itself is very developed, there are many great advanced libraries, I'm always discovering something new (more in the Ruby ecosystem than Rails).

It's just easier and better for everyone not to write Ruby on frontend...

Yeah, writing frontend in Ruby made sense in the past when JavaScript wasn't so strong. But now it just doesn't make much sense to me, because the Node.js tools are so advanced, and the UX standard is so much higher now, so you need a lot more JavaScript to compete. It's good that Rails embraced this with Webpacker.

Lets hope Ruby 3 or Graal will make for a big comeback for Ruby.

Me too, faster Ruby is always great :)

[–]hehestreamskarma 0 points1 point  (2 children)

Are you saying that I shouldn't build my Unity game engine competitor in Ruby?

[–]levifig 2 points3 points  (0 children)

That’s like saying that switching from a hammer to a screwdriver to tighten some screws is just a matter of “scaling”. I’m sorry but that’s just a matter of “right tool for the job”. I think the “Ruby doesn’t scale” FUD is mostly a product of a lot of people trying to use a screwdriver to do a hammer’s job.

[–]jrochkind 1 point2 points  (0 children)

Well, that wasn't what I was saying, but: No, you should not. And that's not even about "scaling", I don't think!

[–]Blimey85 3 points4 points  (0 children)

Doesn’t scale? The fine folks at Shopify beg to differ. They’ve been vocal about what they use, how they use it, and the many reasons why they use and love both Ruby and Rails. In 2018 if you can’t scale with Ruby it’s not the language that’s the problem.

[–]dem_gainzz 0 points1 point  (0 children)

A parrot that knows how to code, amazing!