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

Programmer Humor

25958 readers
626 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
[–] Diplomjodler3@lemmy.world 46 points 2 days ago (8 children)

The Python won't give an accurate date here because it doesn't take into account leap years.

[–] wols@lemmy.zip 12 points 1 day ago (2 children)

The comparison is somewhat awkward, because the rails example presumably produces a date, while the python one is referring to an interval of time.
Just from the meme it's not obvious which was the actual intended use, so labeling either as inaccurate requires us to make assumptions.

Personally, the concept of "10 years ago" is a bit nebulous to me. If today is February 29th, is ten years ago March 1st? Doesn't seem right. Or particularly useful.

[–] nilloc@discuss.tchncs.de 1 points 10 hours ago

Ruby should add 10.years.ago.today

load more comments (1 replies)
load more comments (6 replies)