• BarneyPiccolo@lemmy.today
    link
    fedilink
    English
    arrow-up
    71
    ·
    1 day ago

    I’m not even a computer guy, but even I can see how just using the number of lines of code as a metric would be an extremely stupid method for determining effectiveness. Quality should ALWAYS rule over Quantity, but billionaires are obsessively into quantity, to an extremely unhealthy degree (it’s a mental illness, OCD, hoarding, etc.), that’s how they become billionaires.

    • Captain Aggravated@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      15
      ·
      15 hours ago

      An Ask Lemmy topic recently was “what are some video games that don’t exist.” I gave three answers, but held one back because it does technically exist.

      SQIJ! for the ZX Spectrum was designed to be terrible by a programmer that, as I understand it, was contractually obligated to program a game, but had grown to hate the company. He wrote a game that turned the caps lock on so none of the movement keys worked, and if you edit the code with a memory poke to turn caps lock off, you’ll find there’s no game. It was written in BASIC, and the first line is the most passive aggressive thing I’ve ever read:

      1 goto 2

    • teft@piefed.social
      link
      fedilink
      English
      arrow-up
      43
      ·
      1 day ago

      I’m going to set my terminal width to 1 character. That way my “lines” of code count goes way up.

      • BarneyPiccolo@lemmy.today
        link
        fedilink
        English
        arrow-up
        34
        ·
        1 day ago

        That’s the kind of thinking that a Sociopathic Oligarch could get behind, which is entirely the problem. Gaming and/or hacking the system is preferable to doing things properly. They want to be “disruptive,” even when it’s ill-advised.

        • corsicanguppy@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          17 hours ago

          Imagine trying to read that

          Kernel code is very often a series of short words, and very often formatted to take a lot of vertical space (i.e lines of code). It can be hard to read, especially when it’s a short code that corresponds to a longer function or location; but with practice we can cope.

          tho

          See? You’re expecting people to do it already. And kernel code conforms to the grammar a lot more than American 'english.

          • SolSerkonos@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            23 hours ago

            I wasn’t trying to suggest that it would be impossible- it’s obviously not. Just that it would be a difficult adjustment.

    • foggy@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 day ago

      Here’s a very simple example.

      What’s 3^3?

      Or,

      Well it’s 3x3x3

      Which is 3+3+3, 3 times.

      Which is 3+3+3+3+3+3+3+3+3, which is 27.

      Which solution do we prefer?

      3^3 = 27?

      Or

      3+3+3

      +3+3+3

      +3+3+3

      =27?

      Which one uses more lines?