I'm currently developing a React project with another developer who seems to be making progress at lightning speed. However, I'm noticing some significant issues, like massive file sizes and poor component separation, along with an excessive number of `useState` hooks. This has led me to suspect that they might be relying heavily on AI to generate their code.
Are there any tools available that can help me identify files in my codebase that may have been AI-generated? I'm trying to figure out whether I need to enforce stricter coding standards or if I should even ask them to stop using AI altogether. I'm really curious to hear your thoughts on this.
4 Answers
Honestly, unless there’s a serious reason to avoid AI, like specific security issues, banning it seems unnecessary. Just focus on implementing good coding standards! If they’re using AI but still adhering to those standards, that’s fine. Plus, we can't deny that using AI can save a lot of time, but they should definitely still spend a few minutes cleaning things up after.
For sure! If they’re just dumping raw outputs from AI without any modifications, that's a red flag. AI should be more of a guide than a crutch.
What’s all the fuss about AI-generated work anyway? Instead of worrying if it’s AI, focus on making your code review process more robust. It’s the code quality you should be looking at, not just who might or might not be using AI.
You might want to consider doing some pair programming sessions with them. It’s a great way to see their actual coding process in action. Also, it’s essential to have coding standards in place. If their AI usage aligns with those standards, then it shouldn't be a problem at all, right? AI is just another tool like autocomplete!
Honestly, there are no reliable tools out there for detecting AI-generated code. One tool did exist but even OpenAI told people not to use it due to false positives, claiming it wrongly identified non-AI content as AI-written. It’s way too tricky to figure it out. From what I'm hearing, though, it sounds less like AI usage and more like they might just be inexperienced with React. AI wouldn’t overload a component with tons of `useState` hooks—good AI should be aiming for better practices!

Totally! AI can be an amazing tool if used correctly. But yeah, it shouldn't be about just copying and pasting huge code chunks. It’s really about using AI as a coding partner or a research aid, not just a source of ready-made code.