Click here to Skip to main content
15,921,697 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
the goat in your machine30-Sep-19 22:06
the goat in your machine30-Sep-19 22:06 
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 
Single responsibility principle.
A class should do a single thing, meaning it has one reason to change (or something like that).

I find that my classes are rarely larger than a few 100 lines.
I recently wrote one of about 600 lines and it felt like an absolute beast to me.
I can't really put an upper limit on lines per file, but 24,000 in a single class is WAY TOO MUCH. Period.
That's just unmanageable.
The tab containers, for example, should've been in their own files.
You look at the solution and you see OrderForm.cs, TabControl.cs, MyTextBox.cs, OrderRepository.cs, etc. and you know what kind of work you can expect.
Looking at a solution and seeing only OrderForm.cs, but with 24,000 lines tells you nothing of what is going on or where to find it.

GeneralRe: Largest Code File? Pin
harold aptroot30-Sep-19 10:33
harold aptroot30-Sep-19 10:33 
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 

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.