• marcos@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    20 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
      ·
      9 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.