Click here to Skip to main content
15,921,837 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Where has the witch gone ? Pin
honey the codewitch30-Sep-19 19:09
mvahoney the codewitch30-Sep-19 19:09 
JokeRe: Where has the witch gone ? Pin
Nand321-Oct-19 1:09
Nand321-Oct-19 1:09 
GeneralLargest Code File? Pin
michaelbarb30-Sep-19 9:37
michaelbarb30-Sep-19 9:37 
GeneralRe: Largest Code File? PinPopular
Kevin Marois30-Sep-19 9:49
professionalKevin Marois30-Sep-19 9:49 
GeneralRe: Largest Code File? Pin
michaelbarb30-Sep-19 9:57
michaelbarb30-Sep-19 9:57 
GeneralRe: Largest Code File? Pin
PIEBALDconsult30-Sep-19 10:02
mvePIEBALDconsult30-Sep-19 10:02 
GeneralRe: Largest Code File? Pin
Sander Rossel30-Sep-19 10:02
professionalSander Rossel30-Sep-19 10:02 
GeneralRe: Largest Code File? Pin
harold aptroot30-Sep-19 10:33
harold aptroot30-Sep-19 10:33 
I have several thoughts.

File length may be some sort of measure that is weakly correlated to how much of a mess the code is, but if it is used a target then it loses its value as a measure.

If turning a long code file into several short ones just means introducing unnatural/forced "file breaks" (kind of like a line break but more dramatic, indeed this same principle applies to a line length limit) at random points, nothing has been gained by doing it. Cutting up a mess just results in a cut-up mess, cutting up a non-mess creates a mess.

Long files are a bit annoying to navigate, but so is "lots of files in a project".

Having closely related things spread of different files is more annoying to keep straight and navigate between and choose where to add new stuff. Having some incidental not-quite-so-closely-related things in the same file isn't really a problem but more like something that will trigger some people's compulsive need to organize.

If a form has hundreds of controls, which I'm not saying is great to have, but if it has, then it's going to have a long code-behind file automatically, just to put the event handlers and basic control-related logic there. 24k lines sounds like there's a bunch of other stuff in there too that maybe could reasonably be somewhere else, maybe. But I don't know.
GeneralRe: Largest Code File? Pin
Rick York30-Sep-19 10:41
mveRick York30-Sep-19 10:41 
GeneralRe: Largest Code File? Pin
Dave Kreskowiak30-Sep-19 10:42
mveDave Kreskowiak30-Sep-19 10:42 
GeneralRe: Largest Code File? Pin
kmoorevs30-Sep-19 11:13
kmoorevs30-Sep-19 11:13 
GeneralRe: Largest Code File? Pin
enhzflep30-Sep-19 16:55
enhzflep30-Sep-19 16:55 
GeneralRe: Largest Code File? Pin
kmoorevs1-Oct-19 4:05
kmoorevs1-Oct-19 4:05 
GeneralRe: Largest Code File? Pin
BillWoodruff30-Sep-19 11:46
professionalBillWoodruff30-Sep-19 11:46 
PraiseRe: Largest Code File? Pin
michaelbarb1-Oct-19 4:00
michaelbarb1-Oct-19 4:00 
GeneralRe: Largest Code File? Pin
grralph12-Oct-19 2:06
grralph12-Oct-19 2:06 
GeneralRe: Largest Code File? Pin
Mycroft Holmes30-Sep-19 12:32
professionalMycroft Holmes30-Sep-19 12:32 
GeneralRe: Largest Code File? Pin
Matthew Dennis30-Sep-19 12:45
sysadminMatthew Dennis30-Sep-19 12:45 
GeneralRe: Largest Code File? Pin
Amarnath S30-Sep-19 14:16
professionalAmarnath S30-Sep-19 14:16 
GeneralRe: Largest Code File? Pin
Member 916705730-Sep-19 20:40
Member 916705730-Sep-19 20:40 
GeneralRe: Largest Code File? Pin
OriginalGriff30-Sep-19 21:12
mveOriginalGriff30-Sep-19 21:12 
GeneralRe: Largest Code File? Pin
#realJSOP30-Sep-19 23:41
professional#realJSOP30-Sep-19 23:41 
GeneralRe: Largest Code File? Pin
BillWoodruff1-Oct-19 7:20
professionalBillWoodruff1-Oct-19 7:20 
GeneralRe: Largest Code File? Pin
CPallini30-Sep-19 21:18
mveCPallini30-Sep-19 21:18 
GeneralRe: Largest Code File? Pin
dan!sh 30-Sep-19 22:12
professional dan!sh 30-Sep-19 22:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.