• TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    They are however widely known to be terrible at code

    They are for large tasks. However, for simple pattern repetition tasks, they’re generally fine, code or not. I’ve had success, for example, having them remove pointless, confusing try…except blocks surrounding imports at work. I usually find that I just rewrite anything myself if it’s anything more complex than that because the code it produces makes no sense and taught me nothing.

    I like to say the main problems with most projects were already the code quality and the bugs, and not that we somehow needed even more low quality lines of code.

    Tell me about it lol.

    • ell1e@leminal.space
      link
      fedilink
      English
      arrow-up
      2
      ·
      16 hours ago

      I’ve had success, for example, having them remove pointless, confusing try…except blocks surrounding imports at work.

      And you may have introduced some dangerous hidden bug that way, which you may not have doing it manually.

      (I’m not saying that makes it not worth it, this is just what the studies are saying. I personally think it’s not worth it, but I realize there is some subjectivity here.)

      • TehPers@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 hours ago

        And you may have introduced some dangerous hidden bug that way, which you may not have doing it manually.

        You act like I can’t read some import statements and see if they match the import statements on the other side of the diff lol.

        There was no bug introduced. All the dependencies were required. If any of the imports did error, then that’s a bug with that package that got surfaced instead.