Is there really a difference in code quality between Claude and GPT?
I've been using both for coding lately, but honestly I can't really tell. Which one do you all feel is better? I've also heard it varies by programming language.
7 answers
I use both too, and the conclusion is it just depends on the day lol. Yesterday Claude produced a clean refactor, and today GPT was better.
GPT’s code comes out a bit ‘textbook-like,’ while Claude feels like it follows the existing code style? Of course, it might just be my imagination lol
I’d say prompting accounts for 80% of the outcome, more than code quality. Even with the same model, results vary widely depending on how you provide context. I use both just for drafting, and do the review myself.
Do you have a source? Comparative data, not subjective claims.
Well, that’s a bit... I feel like you might be generalizing from just a few benchmark posts. Model versions keep changing, so I’m not sure it’s meaningful to draw conclusions on this topic.
I do notice it varies a bit by language. For Python, honestly, both are pretty similar, but when TypeScript generics get involved, Claude held up better. And GPT sometimes confidently makes up library functions that don't exist, which is scary.
I disagree. I've used both, and there wasn't much difference in how often they produced code you could drop straight into a real project. I think having them write tests alongside the code is far more important than that.