this post was submitted on 12 Jul 2023
31 points (79.2% liked)

Programmer Humor

32448 readers
977 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] YMS@kbin.social 2 points 1 year ago (1 children)

As someone who professionally works in a project with many, many thousands of files (I don't know the exact number right now, but we're coming close to 10 million lines of code) and many of them having thousands of lines (see my other comment): No, longer files is not better than more files.

[โ€“] aidan@lemmy.world 1 points 1 year ago

It depends, obviously if stuff is unrelated than they should be in separate files, but having in one folder 1000 files containing each function I think that would be very exhausting to search through to understand the code.