• aidan@lemmy.worldOP
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    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
      link
      fedilink
      arrow-up
      2
      ·
      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.worldOP
        link
        fedilink
        arrow-up
        1
        ·
        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.