1125
you are viewing a single comment's thread
view the rest of the comments
[-] catnip@lemmy.zip 10 points 1 month ago

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 1 month ago* (last edited 1 month ago)

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.

[-] cloudy1999@sh.itjust.works 2 points 1 month 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.

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

Programmer Humor

28191 readers
1265 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