this post was submitted on 13 Nov 2025
1068 points (99.3% liked)

Programmer Humor

27412 readers
1267 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
[–] ripcord@lemmy.world 14 points 1 week ago (2 children)

Yeah, I dont see a big problem with files over 2000 lines in some cases, as long as things remain well writrej, organized, abstractd.

One piece of garbage that I'll never touch again hae most functions this size. One was 50,000 lines! Hundreds.of lines of if/else, half of the functions passed the same 60 arguments because he didn't understand classes or even dictionaries, etc etc. And was used heavily.

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

Yeah, honestly overly splitting things up is worse sometimes, that's how you end up in Java land. Any time you want to grok a specific function you end up down 30 abstracted code paths. Essentially need a compiler to unroll it all to actually see what it's doing.

[–] ripcord@lemmy.world 0 points 6 days ago

Java was exactly the negative use case I was thinking of. Trying to track down the flow of things for code I don't look at regularly drives me insane.

[–] funkless_eck@sh.itjust.works 8 points 1 week ago (1 children)
[–] ripcord@lemmy.world 4 points 1 week ago

Lol I'm leaving it