31
you are viewing a single comment's thread
view the rest of the comments
[-] aidan@lemmy.world 4 points 1 year ago

You should see Firefox source code, there are many files like that. Honestly it's better than having 100,000 files which is what would happen with the size of Firefox.

[-] YMS@kbin.social 2 points 1 year ago

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.

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

Programmer Humor

32495 readers
535 users here now

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

Rules:

founded 5 years ago
MODERATORS