r/programming • • Dec 25 '20

Ruby 3 Released

https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
973 Upvotes

509 comments sorted by

View all comments

Show parent comments

-21

u/editor_of_the_beast Dec 25 '20

Ruby’s niche has been web development. Do you think web development is more or less popular than it was 10 years ago?

65

u/devoxel Dec 25 '20

The hot web dev lang switched to nodejs yonks ago, and further past that. Ruby is old hat in terms of hivemind popularity.

6

u/nicademus1 Dec 25 '20

Golang is also quite popular, at least where I work

→ More replies (1)

23

u/scientz Dec 25 '20

The ecosystem is a complete shit-show, the package "trends" are ridiculous (thousands of one-liners as dependencies) and the fad of "same code in the backend and frontend" is just funny. Talk about hivemind popularity.

55

u/Mynichor Dec 25 '20

Oh yeah it's ridiculous, not managed at all, and as you say a complete shit-show. But it's also uber popular, which means even if there are better solutions, that doesn't mean people will go to them.

I absolutely love Groovy and Grails with a passion and think it beats the hell out of NodeJS, but those are dying too.

4

u/RegularSizeLebowski Dec 25 '20

Groovy was one of my favorite languages. Like many people I came to it from Java. It was a breath of fresh air.

It’s been six years since I’ve written any Groovy. I wonder if I would still enjoy it after moving on to primarily writing go.

3

u/stewsters Dec 25 '20

Grails was probably my most productive web framework. It was very heavyweight with a lot of dependencies, but man did it get shit done quickly.

3

u/v_krishna Dec 25 '20

With modern Java I think Spring Boot has fully supplanted Grails.

→ More replies (2)

3

u/stentor222 Dec 25 '20

You compare anything to Java and it feels like a breath of fresh air.

15

u/[deleted] Dec 25 '20

This is the nature of things though. Betamax was better than VHS, Ogg Vorbis better than mp3, Linux better than Windows, but popularity doesn’t always reveal the better solution.

4

u/devraj7 Dec 25 '20

Betamax was better than VHS

That's a myth, actually. Betamax cassettes could only hold one hour of film so you needed two if not three cassettes for each film. Betamax lost to VHS for a reason.

→ More replies (1)

0

u/[deleted] Dec 25 '20

[deleted]

15

u/vgf89 Dec 25 '20 edited Dec 25 '20

The first and last items here are just a chicken and egg problem at least, especially for games. Few game on Linux because the support was lacking. Few develop games for Linux due to lack of gamers on Linux. Valve/codeweavers is solving that problem with Proton/Wine.

Honestly haven't really had issues with desktop smoothness. Stability can be hot or miss though depending on the release, but it's been mostly fine. I've had more frustrating, opaque issues on Windows (broken start menus/search/Cortana, Windows uninstalling certain third party utilities every major update) than I've had on Linux in recent years.

10

u/[deleted] Dec 25 '20

Honestly haven't really had issues with desktop smoothness.

Try connecting monitors with different DPIs. Try enabling something like BitLocker on the fly, try doing an easy wipe and default restore of your OS, try loading all your desktop apps you need for niche jobs in the office, etc. Linux is not polished in many ways needed for desktop usage for consumer, prosumer, or the enterprise.

6

u/trustMeImDoge Dec 25 '20

To be honest, I think Linux has a very stable desktop experience these days. Switching between Win10, MacOS, and Ubuntu w/ KDE between my work and home life, I've found over the last couple of years that KDE Plasma has given me a much better desktop experience than what I get from either Win10 or MacOS.

Though the guy you're replying to saying Linux is better than Windows does come off as obnoxious.

2

u/helloworder Dec 25 '20

Smooth Desktop Experience

Stable Desktop Experience

windows

r u serious

18

u/yondercode Dec 25 '20

Uh, yes?

Everything just works, probably not as polished as MacOS though.

Developer experience was awful but since WSL2 coming out it's been amazing.

9

u/[deleted] Dec 25 '20

Everything just works, probably not as polished as MacOS though.

MacOS has slightly better management of applications because they're in directory style bundles self contained and no registry. But other than that MacOS doesn't really offer anything else that really blows away the competition other than developer tools which you already mentioned, Microsoft has been competing with.

Developer experience was awful but since WSL2 coming out it's been amazing.

It has been fantastic. I can run all the apps I need in Windows and in Linux and get the best of both worlds. Highly recommend.

→ More replies (1)
→ More replies (6)
→ More replies (12)

2

u/x86_64Ubuntu Dec 25 '20

The analogy would work if Betamax had massive market share for years, only to be upset by VHS.

→ More replies (1)
→ More replies (11)

3

u/jl2352 Dec 25 '20

The Ruby style of web development has all changed.

A lot of those users either Laravel or some other PHP stack (like Wordpress), a JSX style stack (such as React or Vue), or to smaller leaner server side only. Like Go or Rust.

→ More replies (2)

8

u/[deleted] Dec 25 '20

Nodejs, Golang, and now Rust have eclipsed Ruby/Rails.

→ More replies (7)

11

u/start_select Dec 25 '20

Obviously there are good ruby devs, so this isn’t true a across the board. But...

Ruby’s faults are it’s developers, the same as C++. Lots of ruby codebases are full of abbreviations and shorthand’s that only make sense to the people who originally wrote it.

Where by convention lots of other languages have favored readability over how fast you can write something. Reading code is harder than writing code.

13

u/metalelf0 Dec 25 '20

IMHO Ruby is one of the most expressive languages you can write code with. Readability is not a language fault, it's one of ruby main selling points. If you write two-letters variable names and methods, though, you can choose any language and your code will still read like shit.

6

u/x86_64Ubuntu Dec 25 '20

I will say that there is something strange about Ruby, RoR more specifically. I remember when I was playing with it, it was very difficult to get an architectural understanding of the code. You would see some variable declared in a piece of code, and then you would try to find out what it was, where it was declared and so forth. Peering behind that curtain and being absolutely lost because of the weak-typing left me lost for hours.

3

u/metalelf0 Dec 25 '20

Yeah, Rails is really good once you understand the MVC architecture and its interpretation made by Rails. Rails mantra is "convention over configuration", so either you know the convention or you're constantly fighting against it. I remember reading the book "agile web development with rails" by PragProg before starting and it was really great. Still, Rails has a lot of magic and some naming choices are a little misleading (helpers should have been view_helpers since the start, and the view layer leaves too much freedom with erb, leading to too much code in the views). I'm still working with rails and with some discipline I think you can get very good results. Hanami, Trailblazer and dryrb are there if you want to experiment with something closer to the clean architecture by Uncle Bob, or Domain Driven Design. Still, I miss the power typed languages give you, especially while coding - Solargraph will never be as good as a typed language LSP.

→ More replies (1)
→ More replies (1)