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.

by 뉴비탈출210

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.

by 지나가던행인659 · ▲0

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

by 밤샘코더189 · ▲0

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.

by 문과출신개발자981 · ▲0

Do you have a source? Comparative data, not subjective claims.

by 궁금한사람700 · ▲0

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.

by 취준생김씨765 · ▲0

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.

by 카페인중독776 · ▲0

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.

by 월급루팡435 · ▲0