Click here to Skip to main content
15,897,187 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: Largest Code File? Pin
dan!sh 30-Sep-19 22:12
professional dan!sh 30-Sep-19 22:12 
GeneralRe: Largest Code File? Pin
Spoon Of Doom30-Sep-19 23:32
Spoon Of Doom30-Sep-19 23:32 
GeneralRe: Largest Code File? Pin
#realJSOP30-Sep-19 23:37
professional#realJSOP30-Sep-19 23:37 
GeneralRe: Largest Code File? Pin
MarkTJohnson1-Oct-19 3:25
professionalMarkTJohnson1-Oct-19 3:25 
GeneralRe: Largest Code File? Pin
#realJSOP1-Oct-19 3:33
professional#realJSOP1-Oct-19 3:33 
GeneralRe: Largest Code File? Pin
joje19851-Oct-19 0:45
joje19851-Oct-19 0:45 
GeneralRe: Largest Code File? Pin
CraigGOliver1-Oct-19 2:18
CraigGOliver1-Oct-19 2:18 
GeneralRe: Largest Code File? Pin
agolddog1-Oct-19 3:02
agolddog1-Oct-19 3:02 
Arbitrary rules are arbitrary. There is no maximum file size. If "huge" it what it takes to get the job done, then huge it is--as long as everything logically goes together.

That's really what the notion of "some max file size" is trying to encapsulate--if you have huge files, it's likely that you've crossed some logical boundaries.

By breaking things into a bunch of smaller files, you have systematic complexity which needs to be managed.

There is no hard-and-fast rule. It's really around trying to define functional areas (tiers), and trying to ensure that code in each tier 'fits' there.

That being said, from your description, it sounds as if refactoring is in order to separate the concerns a bit.

For example, each tab might be represented by a control. Simplify the main form just to be a controller of each sub-control, showing/hiding the right thing(s) based on selected tab.

Then, you might want to add a data-access tier, etc, etc.

I imagine your co-workers will then complain about "how hard it is to follow", having to talk to some factory-type method to execute SQL instead of directly querying/executing. Sigh.

GeneralRe: Largest Code File? Pin
Asday1-Oct-19 3:39
Asday1-Oct-19 3:39 
GeneralRe: Largest Code File? Pin
PIEBALDconsult1-Oct-19 5:51
mvePIEBALDconsult1-Oct-19 5:51 
GeneralRe: Largest Code File? Pin
Asday1-Oct-19 8:31
Asday1-Oct-19 8:31 
GeneralRe: Largest Code File? Pin
charlieg2-Oct-19 2:12
charlieg2-Oct-19 2:12 
GeneralAstronomy photographer of the year 2019 PinPopular
Jörgen Andersson30-Sep-19 9:03
professionalJörgen Andersson30-Sep-19 9:03 
GeneralHi, can someone reply Pin
glennPattonWork330-Sep-19 6:12
professionalglennPattonWork330-Sep-19 6:12 
GeneralRe: Hi, can someone reply Pin
Marc Clifton30-Sep-19 6:22
mvaMarc Clifton30-Sep-19 6:22 
GeneralRe: Hi, can someone reply Pin
OriginalGriff30-Sep-19 6:26
mveOriginalGriff30-Sep-19 6:26 
GeneralRe: Hi, can someone reply Pin
glennPattonWork330-Sep-19 8:52
professionalglennPattonWork330-Sep-19 8:52 
GeneralRe: Hi, can someone reply Pin
OriginalGriff30-Sep-19 20:38
mveOriginalGriff30-Sep-19 20:38 
JokeRe: Hi, can someone reply PinPopular
Richard Deeming30-Sep-19 6:43
mveRichard Deeming30-Sep-19 6:43 
GeneralRe: Hi, can someone reply Pin
glennPattonWork330-Sep-19 8:24
professionalglennPattonWork330-Sep-19 8:24 
GeneralThought of the Day Pin
OriginalGriff30-Sep-19 4:55
mveOriginalGriff30-Sep-19 4:55 
GeneralRe: Thought of the Day Pin
MarkTJohnson30-Sep-19 5:03
professionalMarkTJohnson30-Sep-19 5:03 
GeneralRe: Thought of the Day Pin
  Forogar  30-Sep-19 5:25
professional  Forogar  30-Sep-19 5:25 
GeneralRe: Thought of the Day Pin
dan!sh 30-Sep-19 6:16
professional dan!sh 30-Sep-19 6:16 
GeneralRe: Thought of the Day Pin
dan!sh 30-Sep-19 6:19
professional dan!sh 30-Sep-19 6:19 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   18 votes