• Dave@lemmy.nz
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      Couldn’t most people here could do it in one? The code is in the post and newlines can be removed like in minified javascript.

      • monica_b1998@lemmy.worldOP
        link
        fedilink
        arrow-up
        6
        ·
        10 hours ago

        technically yes, although i use the “1 instruction per line” rule and give the number so that readers have a rough idea of the complexity of the solution

    • bloubz@lemmygrad.ml
      link
      fedilink
      arrow-up
      2
      ·
      10 hours ago

      Sure, value code minimal length, this is an exceletent idea. Just as much as Musk firing twitter devs who wrote fewer lines