• @dgmib@lemmy.world
    link
    fedilink
    526 months ago

    Sometimes ChatGPT/copilot’s code predictions are scary good. Sometimes they’re batshit crazy. If you have the experience to be able to tell the difference, it’s a great help.

    • @EatATaco@lemm.ee
      link
      fedilink
      English
      76 months ago

      Due to confusing business domain terms, we often name variables the form of XY and YX.

      One time copilot autogenerated about two hundred lines of a class that was like. XY; YX; XXY; XYX; XYXY; … XXYYXYXYYYXYXYYXY;

      It was pretty hilarious.

      But that being said, it’s a great tool that has definitely proven to worth the cost…but like with a co-op, you have to check it’s work.

    • @Inktvip@lemm.ee
      link
      fedilink
      16 months ago

      The amount of reference material it has is also a big influence. I’ve had to pick up PLC programming a while ago (codesys/structured text, which is kinda based on pascal). While chatgpt understands the syntax it has absolutely no clue about libraries and platform limitations so it keeps hallucinating those based on popular ones in other languages.

      Still a great tool to have it fill out things like I/O mappings and the sorts. Just need to give it some examples to work with first.