• morrowind@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    You can always extract out the linear code when it actually becomes useful. It’s much easier to refactor when needed.

    • Dark ArcA
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I disagree, by the time you find you “need to” it’s often already tangled.

      • morrowind@lemmy.ml
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        1 year ago

        Linear code is almost always easier to refactor than code split into functions

        • Dark ArcA
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          Yeah I’m going to hard disagree with you on that.