this post was submitted on 24 Aug 2025
456 points (98.9% liked)

Programmer Humor

25958 readers
903 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] etchinghillside@reddthat.com 24 points 2 days ago* (last edited 2 days ago) (5 children)

LLM is saying this is a feature of Rails and not particularly Ruby.

I was surprised Python didn’t have a years parameter but learned about

relativedelta(years=10)

[–] noxypaws@pawb.social 1 points 12 hours ago (1 children)

LLM is saying...

Stop. Nothing at all past those three words is worth a damn.

[–] etchinghillside@reddthat.com 0 points 11 hours ago (1 children)

What is the purpose of this comment.

[–] noxypaws@pawb.social 1 points 9 hours ago (1 children)

You didn't seem to be ashamed of admitting to asking an LLM a question as if it was helpful, wise, or respectable for you to have done. You should be.

[–] etchinghillside@reddthat.com 0 points 9 hours ago

This is a poor perspective to have on things towards a stranger on the internet. I hope you’re just having a bad day and that things get better.

[–] mesamunefire@piefed.social 30 points 2 days ago (1 children)

Yeah its a rails only thing. Rubys biggest issue is its much too intelligent for its own good. Its implicit rather than pythons explicit. Most of the time. That and it's hard to find out where Ruby starts and rails ends.

That being said I made a ton of good money on rails back about 15 or so years ago. Still excellent for starting out.

[–] tyler@programming.dev 1 points 3 hours ago

Ruby’s biggest issue is rails. Ruby is such a beautiful and highly functional language and yet everyone’s experience with it is rails’ horrific metaprogramming magic. I’ve had numerous people tell me they hate Ruby, and yet when I dig deeper I find out that they don’t actually understand where Ruby ends and rails starts and all of their problems lies on rails side. The majority of people I’ve shown that have come to actually like Ruby where they hated it before.

[–] immutable@lemmy.zip 2 points 1 day ago* (last edited 1 day ago)

Rails, ActiveSupport I believe, adds this to integers.

But I think one of the interesting things about it is the open nature of classes in ruby.

The thing that makes it possible is that you can open classes in user space and just add stuff to them. It’s a neat feature that few languages have.

The feature, like most features, has pros and cons. On the pro side it makes making DSLs and helpers like this pretty trivial. You can make really expressive ideas and apis because you can change how things you didn’t write work.

On the con side, it’s harder to discover and the methods of an object being the result of runtime mixins can make things hard to reason about.

Having worked in both python and ruby and now elixir for the past couple of years, it’s interesting to see how the languages are similar and different.

There’s an elegant beauty to ruby’s everything is an object and all method calls are messages concept. Python has always struck me as less elegant but the upside is that it can model different ideas in different ways and doesn’t have to try to make them all look like the one central idea.

Even though I find the model behind ruby more pleasing to think about, I tend to enjoy python more due to it being more explicit and easier to reason about. Although that’s pretty subjective.

In any case I think the language feature of open classes is a fascinating one and one of the really different parts of ruby that really distinguishes it from python, for better or worse.

Yeah that feels like the kind of smartass thing Python would do.

[–] criss_cross@lemmy.world 6 points 2 days ago (1 children)

You can add activesupport (I think that’s it) to get it if you don’t want to use all of rails.

[–] mesamunefire@piefed.social 2 points 2 days ago

That's what I end up seeing for most ruby only scripts. It works!