• xthexder@l.sw0.com
    link
    fedilink
    arrow-up
    1
    ·
    9 hours 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.

    • Pup Biru@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 hours ago

      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.

      and i’m saying who’s to say what’s necessary with the linux kernel? it’s a one of a kind project: the largest software undertaking by humanity, ever

      there probably are 100x more LOC than technically necessary… heck there are… how many LOC in the linux kernel? millions? there’s n-1 more LOC than necessary because it’s C and can be a one-liner (hell even python can be a one liner if you turn it into something resembling brainfuck more than python)

      what are you comparing 2x, 10x, 100x to? bsd? windows? neither are particularly good comparisons because linux is so much more capable (in many respects) than either, and solves different problems of scale that either too

      linux has no point of comparison for a simple LOC metric… the only thing we can judge is the output itself: its efficient to run, velocity of new features is great, bug count is low for a project of its size, and tech debt gets paid down

      again, i think given those factors it wouldn’t matter if linux were 100x the LOC that it actually is: it is the benchmark that other things are measured against

      LOC has always been, and will remain a terrible metric for anything except number of newline characters in a source repo