31
you are viewing a single comment's thread
view the rest of the comments
[-] xedrak@kbin.social 12 points 1 year ago

8,000+ lines in a single file??? I’m going to be sick

[-] GroteStreet@aussie.zone 13 points 1 year ago

Oh that's not uncommon in the industry. Especially when dealing with legacy code.

Personal best was 40k lines in a file called misc.c containing all the global functions that don't fit anywhere else.

Runner up was the one where each developer dumped their miscellaneous functions in their own files, so they don't have to deal with merge conflicts. Which means we had x1.c, x2.c, x3.c ... etc.

[-] xedrak@kbin.social 8 points 1 year ago

Oh trust me, I know. Personal best is 20k lines in a Java file that served as the main control flow of the entire software. Just because it’s common doesn’t make me any less disgusted 😂

Thankfully now I’m the asshole senior who gets to prevent this kind of stuff from happening in the first place. But like you said, that doesn’t help with legacy applications lol.

load more comments (2 replies)
load more comments (9 replies)
this post was submitted on 12 Jul 2023
31 points (79.2% liked)

Programmer Humor

32495 readers
599 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS