• catnip@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    19 hours ago

    Those are rookie numbers. We got functions with 5000+ lines and 20 levels of indentation directly in the user-interaction event handlers :)

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      18 hours ago

      Well, that’s how you do it!

      And if two widgets need to create the same effect, you just copy the 5000 lines around. That’s why copy-and-paste was invented.

      (It really shouldn’t be necessary… but in case somebody still needs it, here’s the \s)

      • cloudy1999@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        7 hours ago

        This is the right strategy. Storage space costs nothing these days. Why not just clone and go? That’s what I always say.

        Why, you can just ‘inherit’ some code by copying a block, pasting it, then making a few small changes. No thinking, no problem.

        Ok, I’m off to copy of my code folder for the next release.