• Pup Biru@aussie.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    LOC doesn’t inherently make things unmaintainable slop, as long as you have strong abstractions (which Linux certainly does)

    one could argue that most Linux distros have billions to trillions of LOC and their abstraction is packages, which are kinda a level of abstraction higher than libraries, which are just a level of abstraction higher than a folder of util functions

    things being “not my code” doesn’t mean it’s not part of your system

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      While you’re correct in a general sense, the linux kernel is what I was referring to, not the whole ecosystem of linux programs and repositories.

      If Hello World can be written in 1 line and someone comes along and presents a version written in 100-1000s of lines without any new features, I’m going to argue it’s unmaintainable slop.

      • Pup Biru@aussie.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        5 days ago

        and if a display driver can’t be written in 1 line that doesn’t make the thousands of lines unmaintainable slop

        some things just require more code

        i’d argue if the linux kernel were billions of LOC, then that’s just what’s necessary

        and necessity is probably relative at that point; many of your LOC are likely technically unnecessary abstractions to help with human understanding

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          0
          ·
          5 days ago

          and if a display driver can’t be written in 1 line that doesn’t make the thousands of lines unmaintainable slop

          That’s not what I’m saying.

          I’m saying if there’s 1000x more lines of code than necessary, it’s unmaintainable slop. I could understand 2x or even 10x the lines of code just being a difference in architecture, but even 100x is getting crazy.

          I think only EnterpriseFizzBuzz surpasses the 1000x inefficiency metric that this meme is implying.