• xia@lemmy.sdf.orgOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Even then, so the theory goes… every line of code is a liability, it is only emergent properties of the system as a whole that makes it an asset. It takes but one line to destroy it’s value, and in general a 2kloc codebase is more valuable than a 4kloc codebase, if they do the same thing. QED? :)

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        Is it objectively more valuable?

        I’d say if performance and functionality remain the same it improve and complexity is reduced then the 2kloc codebase is better

        If it’s 2k lines of perl, it’s worse

        Though in his case it sounds like he reduced complexity and improved performance, so definitely better.

        I don’t know if I’ve even written -2000 lines at once, but I’ve definitely done -700 or so at least. Feels so good to delete a bunch of code without any loss in functionality.