• friend_of_satan@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    Always ask it to write tests for the code it generates. Of course, then you have to validate that the code works AND that the tests work.

    • anotherandrew@lemmy.mixdown.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      9 months ago

      Or just write the damn thing yourself and save a bunch of headaches and wondering if you got the tests right it if there’s some screwy corner case lurking because of its implementation.