Click here to Skip to main content
15,887,477 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
rnbergren3-Mar-23 5:23
rnbergren3-Mar-23 5:23 
GeneralRe: Fighting a monster Pin
WPerkins3-Mar-23 3:39
WPerkins3-Mar-23 3:39 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:21
trønderen3-Mar-23 6:21 
GeneralRe: Fighting a monster Pin
WPerkins17-Aug-23 6:23
WPerkins17-Aug-23 6:23 
GeneralRe: Fighting a monster Pin
dandy723-Mar-23 3:34
dandy723-Mar-23 3:34 
GeneralRe: Fighting a monster Pin
Mircea Neacsu3-Mar-23 3:41
Mircea Neacsu3-Mar-23 3:41 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:24
trønderen3-Mar-23 6:24 
GeneralRe: Fighting a monster Pin
Owen Lawrence3-Mar-23 3:49
Owen Lawrence3-Mar-23 3:49 
I don't recall the longest file, but it was definitly many thousands of lines long. The last application I worked on had quite a few of these, even individual functions that long. Ugh. Those functions tried to do everything and I'm sure they cost the company more than they were worth to maintain.

I'm the same as you; around 1000 lines I start to get uncomfortable. 500 is the sweet spot. It gets really annoying to have to use tools to hunt for your spot in the file every single time, rather than just paging there. Good monitors have made a little extra length easier to tolerate, but not that much.

It's generally a bad smell. Some files just get that way because of neglect, which is its own source of problems. If you see this symptom, expect others. Careful, incremental refactoring over a period of years can help, but you still have a job to do, so there are limits.

Good luck with your new codebase. It's a chore, but hopefully you'll find lots of gems, too.
  • Owen -

GeneralRe: Fighting a monster Pin
Alexey Shtykov3-Mar-23 4:03
professionalAlexey Shtykov3-Mar-23 4:03 
GeneralRe: Fighting a monster Pin
Matt Bond3-Mar-23 3:54
Matt Bond3-Mar-23 3:54 
GeneralRe: Fighting a monster Pin
Getulio_Domingues3-Mar-23 5:05
Getulio_Domingues3-Mar-23 5:05 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:50
professionalCezar Lamann3-Mar-23 8:50 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:25
professionalCezar Lamann3-Mar-23 8:25 
GeneralRe: Fighting a monster Pin
destynova3-Mar-23 8:25
destynova3-Mar-23 8:25 
GeneralRe: Fighting a monster Pin
Member 119411313-Mar-23 13:05
Member 119411313-Mar-23 13:05 
GeneralRe: Fighting a monster Pin
jschell6-Mar-23 7:27
jschell6-Mar-23 7:27 
RantPlease don't ever do this. Pin
honey the codewitch2-Mar-23 5:57
mvahoney the codewitch2-Mar-23 5:57 
GeneralRe: Please don't ever do this. Pin
jmaida2-Mar-23 17:29
jmaida2-Mar-23 17:29 
GeneralRe: Please don't ever do this. Pin
honey the codewitch2-Mar-23 18:25
mvahoney the codewitch2-Mar-23 18:25 
GeneralRe: Please don't ever do this. Pin
englebart3-Mar-23 3:54
professionalenglebart3-Mar-23 3:54 
JokeAt least I tried Pin
Sander Rossel2-Mar-23 4:40
professionalSander Rossel2-Mar-23 4:40 
GeneralRe: At least I tried Pin
PIEBALDconsult2-Mar-23 4:45
mvePIEBALDconsult2-Mar-23 4:45 
GeneralRe: At least I tried Pin
OriginalGriff2-Mar-23 4:54
mveOriginalGriff2-Mar-23 4:54 
GeneralRe: At least I tried Pin
theoldfool2-Mar-23 7:55
professionaltheoldfool2-Mar-23 7:55 
GeneralRe: At least I tried Pin
trønderen2-Mar-23 9:06
trønderen2-Mar-23 9:06 

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.