this post was submitted on 24 Aug 2025
279 points (97.6% liked)

Programmer Humor

38240 readers
73 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] GammaGames@beehaw.org 4 points 3 weeks ago (2 children)

Does that work? Might be enough to convert me

[–] skisnow@lemmy.ca 12 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I was on a project a while back that used Ruby, and what I concluded was that cute things like that look good at first glance if you're skim-reading some already-correct code, but are pretty much a net wash in terms of writing or debugging code.

It's not unusual for people to think that code would be better if it scanned like regular English, but the problem is that English is woefully imprecise and doesn't always correlate to what kind of operations get run by the code, and so you still end up having to learn all that syntax and mentally process it like any other programming language anyway, but now you've also got a bunch of false friends tricking you into thinking they do one thing but actually they do another.

(also, the bulk of the text in that python example is the import statement, which is like... ok so what, it's not like Ruby doesn't have its own dependency hell problems)

[–] GammaGames@beehaw.org 5 points 3 weeks ago

I had to modify some ruby a few years ago, I don’t remember liking it! Once I understood the syntax it wasn’t terrible to work with but I still wasn’t a fan of the syntax

[–] sunshine@lemmy.ml 6 points 3 weeks ago

it works in Ruby on Rails but not in bare-naked Ruby, if that gives you a hint of how the language's architecture makes things easy for you and also might stab you in the back one day.