News for hackers. Stuff that matters.
Re:Should you split that file? by norir on Friday December 01, 2023 @02:46PM (#38491290)
> Dear God it's a 3300 line file. Any way but one long 3300 line file is a significant improvement.

I happily hack every day on a project that is self contained in a single 12K line (and growing) file. For me, splitting into multiple files would have negative utility. Everything is essentially in one place. I can find anything I need for my project with '/' search very quickly in vim.

My style is obviously not for everyone but it works great for me. I programmed for decades with traditional file splits and only in the last few years have I switched to single file. I have little interest in going back. For me, it is liberating to stop thinking about directory layout entirely. It also helps me to use simpler tools (I only use vim with no plugins) in part because I don't need help managing multiple files.

Re:Should you split that file? by jaggederest on Friday December 01, 2023 @03:02PM (#38491511)
100% agree if it's your project it's your project. I'm just coming from the perspective of a very team-oriented style where you absolutely want to limit the complexity per file for understanding.

Also I don't envy you reviewing the diffs when you add something that affects e.g. indentation on the file.