• ripcord@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    18 hours ago

    Yeah, I dont see a big problem with files over 2000 lines in some cases, as long as things remain well writrej, organized, abstractd.

    One piece of garbage that I’ll never touch again hae most functions this size. One was 50,000 lines! Hundreds.of lines of if/else, half of the functions passed the same 60 arguments because he didn’t understand classes or even dictionaries, etc etc. And was used heavily.

    • PhilMcGraw@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      12 hours ago

      Yeah, honestly overly splitting things up is worse sometimes, that’s how you end up in Java land. Any time you want to grok a specific function you end up down 30 abstracted code paths. Essentially need a compiler to unroll it all to actually see what it’s doing.

      • ripcord@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 hours ago

        Java was exactly the negative use case I was thinking of. Trying to track down the flow of things for code I don’t look at regularly drives me insane.