• Caveman@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    2 months ago

    These AIs really suck at writing correct code but I’ve had good success in having them write code generators. I recently made it write a script that takes a SQL create table statement and converts in to TS and gives insert update, delete and whatnot and also creates a simple class that handles the operations.

    I had to write the original code by hand but having it write code that writes boilerplate which I correct is pretty good.

    Other code is hit or miss IMO