• Sleepless One@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 hours ago

    But the real savings? Repetitive code. I suck at it, I always make typos and it’s draining.

    It’s hard to say without being immersed in the codebase you work on, but wouldn’t making your code DRY (when possible) take care of a lot of the repetition without needing to write a bunch of incredibly similar code (be it by hand or with an LLM)?

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      I haven’t used a LLM to help code in a while (yes I’ve tried), but I found them useful for repetitive configs, like asset files. Also sometimes it makes sense to just have 5 slightly different lines of code in a row instead of a new function.

      In general though, reasonable use of DRY is a good idea. There will still be repetitive parts though where a LLM autocompleter lets you just hit tab 5 times.