this post was submitted on 12 Jul 2023
31 points (79.2% liked)

Programmer Humor

33584 readers
78 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 2 years ago (11 children)

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

[–] [email protected] 13 points 2 years ago (3 children)

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.

[–] [email protected] 5 points 2 years ago* (last edited 2 years ago) (1 children)

Best I can offer is a combined UI and logic class with 12,500 lines currently. It started out with less than 3,000 lines in the year 2000 (using the brand new Java 1.3), grew to 14,000 over time and survived our recent project-wide one-year cleanup project with only minor losses of code lines.

[–] [email protected] 2 points 2 years ago

I was kinda hoping you were gonna finish that first sentence with "in a java applet". Cause that would've been awesome.

load more comments (1 replies)
load more comments (8 replies)