Click here to Skip to main content
15,906,081 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
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 
Hard limits don't quite make sense. It all depends on the circumstances. Huge methods or huge units are generally a code smell, but they may make sense. That's true for pretty much every one-liner. DRY is a great principle all right, but I've had cases where repeating myself (with some changes) was better for the code base than to pipe everything through that one function. Heck, even "goto is evil", the universal truth of structured programming can be wrong in some cases.

My verdict would be, while your case is likely badly maintained code, it may be, by a tiny off-chance, actually the way to go. And hard line limits shouldn't be relied upon in any circumstances.
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 
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 
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 

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.