I’ve finished a small project that is rather non-standard for me: it has just a few hundred lines of logic written by me, and most of the code is rather banal functions I picked up from the different articles and doc sheets (you know, those functions that are quite “atomic” like “check if the process is running” or “get the process name by pid by reading /proc dir” or “get a mount point by a filename”)

The code was written in a “ok, let’s experiment if I can do this” approach, so now it is in a complete mess.

So the question is if is there some AI that can do an initial code review for me? I’ve tried GhatGPT, but it was completely banal and useless.

  • floofloof@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    15 hours ago

    It’s hit and miss with all the ones I’ve tried. One option is to consult multiple models and see what they agree on. But if they’ve all ingested the same kind of training data they may make some of the same mistakes so you still can’t just trust the results. You have to use your own judgement in the end.

    That said, they can raise things you didn’t think about. They’re not great the big picture things though, so again it comes down to your own judgement.