Click here to Skip to main content
15,887,485 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: Fighting a monster Pin
David O'Neil4-Mar-23 8:15
professionalDavid O'Neil4-Mar-23 8:15 
GeneralRe: Fighting a monster Pin
trønderen4-Mar-23 8:43
trønderen4-Mar-23 8:43 
GeneralRe: Fighting a monster Pin
Sander Rossel5-Mar-23 20:35
professionalSander Rossel5-Mar-23 20:35 
GeneralRe: Fighting a monster Pin
Pete O'Hanlon2-Mar-23 6:28
mvePete O'Hanlon2-Mar-23 6:28 
GeneralRe: Fighting a monster Pin
Gerry Schmitz2-Mar-23 6:31
mveGerry Schmitz2-Mar-23 6:31 
GeneralRe: Fighting a monster Pin
trønderen2-Mar-23 9:00
trønderen2-Mar-23 9:00 
GeneralRe: Fighting a monster Pin
Gerry Schmitz3-Mar-23 5:54
mveGerry Schmitz3-Mar-23 5:54 
GeneralRe: Fighting a monster Pin
PIEBALDconsult2-Mar-23 6:31
mvePIEBALDconsult2-Mar-23 6:31 
What language?
C# should never have been released to the wild without partial classes. Mad | :mad:


For me, it's not directly about the size. I wouldn't break up a file simply because it's larger than X units.
The point is that being "too big" can make things hard to find, and "too hard to find" is what matters more than simply "size".
Similarly, having two pieces of code in separate files makes it easier to have them open in two windows beside each other for whatever reason you may need to do that.

Splitting the code for an application into several files makes version control easier and reduces change conflicts when multiple developers are working on the same code base.
And code sharing between unrelated applications is easier when the applications share a minimum of code and don't share code they don't actually rely on.

The lower and more common the code is, the more granular it should be.
My library code is in single-method (possibly a family of overloaded methods) files, and each application can include only the parts it requires.

Higher level -- application-specific -- code should probably be separated more by functional area; frontend, backend, configuration, administration, etc.

Multi-file projects just make everything better for a team of developers.

Size itself doesn't matter.
GeneralRe: Fighting a monster Pin
honey the codewitch2-Mar-23 6:36
mvahoney the codewitch2-Mar-23 6:36 
GeneralRe: Fighting a monster Pin
PIEBALDconsult2-Mar-23 6:43
mvePIEBALDconsult2-Mar-23 6:43 
GeneralRe: Fighting a monster Pin
honey the codewitch2-Mar-23 6:55
mvahoney the codewitch2-Mar-23 6:55 
GeneralRe: Fighting a monster Pin
PIEBALDconsult2-Mar-23 7:57
mvePIEBALDconsult2-Mar-23 7:57 
GeneralRe: Fighting a monster Pin
Mircea Neacsu2-Mar-23 7:32
Mircea Neacsu2-Mar-23 7:32 
GeneralRe: Fighting a monster Pin
PIEBALDconsult2-Mar-23 8:00
mvePIEBALDconsult2-Mar-23 8:00 
GeneralRe: Fighting a monster Pin
Mircea Neacsu2-Mar-23 8:02
Mircea Neacsu2-Mar-23 8:02 
GeneralRe: Fighting a monster Pin
PIEBALDconsult2-Mar-23 8:11
mvePIEBALDconsult2-Mar-23 8:11 
GeneralRe: Fighting a monster Pin
Daniel Pfeffer2-Mar-23 9:23
professionalDaniel Pfeffer2-Mar-23 9:23 
GeneralRe: Fighting a monster Pin
honey the codewitch2-Mar-23 11:19
mvahoney the codewitch2-Mar-23 11:19 
GeneralRe: Fighting a monster Pin
OriginalGriff2-Mar-23 6:39
mveOriginalGriff2-Mar-23 6:39 
GeneralRe: Fighting a monster Pin
DerekT-P2-Mar-23 6:57
professionalDerekT-P2-Mar-23 6:57 
GeneralRe: Fighting a monster Pin
trønderen2-Mar-23 8:39
trønderen2-Mar-23 8:39 
GeneralRe: Fighting a monster Pin
DerekT-P2-Mar-23 22:31
professionalDerekT-P2-Mar-23 22:31 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 5:57
trønderen3-Mar-23 5:57 
GeneralRe: Fighting a monster Pin
Mircea Neacsu3-Mar-23 1:27
Mircea Neacsu3-Mar-23 1:27 
GeneralRe: Fighting a monster Pin
englebart3-Mar-23 3:33
professionalenglebart3-Mar-23 3:33 

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.