this post was submitted on 13 Nov 2025
1010 points (99.1% liked)

Programmer Humor

27322 readers
895 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
[–] catnip@lemmy.zip 10 points 1 day ago (1 children)

Those are rookie numbers. We got functions with 5000+ lines and 20 levels of indentation directly in the user-interaction event handlers :)

[–] marcos@lemmy.world 5 points 23 hours ago* (last edited 23 hours ago) (1 children)

Well, that's how you do it!

And if two widgets need to create the same effect, you just copy the 5000 lines around. That's why copy-and-paste was invented.

(It really shouldn't be necessary... but in case somebody still needs it, here's the \s)

[–] cloudy1999@sh.itjust.works 2 points 12 hours ago

This is the right strategy. Storage space costs nothing these days. Why not just clone and go? That's what I always say.

Why, you can just 'inherit' some code by copying a block, pasting it, then making a few small changes. No thinking, no problem.

Ok, I'm off to copy of my code folder for the next release.