-

@ David
2025-06-16 12:41:30
i do this a lot. i don't mind a single source file getting to 600 lines but i very dislike a function that goes over about 100 lines, because i am back and forth on it. and yeah, if i break down a long function, i usually want to put the parts in a separate file so i can side by side them.
some editors have that little dark gutter widget at the top of the scrollbar that lets you split a file quickly into two views but in intellij it's more clunky you have to go to the view menu and use the split function there.
i usually end up splitting functions as i'm writing them now, once i need to reuse some part of the code and am copypasta then i'm like, ok, copypasta into one place so i don't break the synchronisation of these two parts.