Have you noticed a difference in code quality between Claude and GPT?

I’ve been running both on a side project lately

When I have them refactor, Claude definitely feels like it breaks things less. GPT starts off ambitious and writes good code, but by the third round of edits it starts inventing functions that don’t exist lol

Which one do you all use in actual work?

by 클라우드러버300

9 answers

Agreed—Claude definitely breaks things less when you iterate on edits. GPT starts calling functions that don’t exist by around the third pass lol

by 초보개발자671 · ▲0

Having used both in real work for about half a year, they definitely have a different feel. GPT is really good at cranking out an initial design, while Claude is strong at gently refining and refactoring it. So I draft with GPT and clean things up with Claude. But this can flip depending on the model version, so I think 'always Claude' is a bit risky.

by 지나가던행인801 · ▲0

Isn't that outdated? With recent models, GPT also handles long contexts well. What you're feeling might just be a difference in prompts.

by 궁금한사람265 · ▲0

Any source? If there's a benchmark, I'd like to see it.

by 지나가던행인49 · ▲0

In practice, I use both. If I only use one, I get stuck in that one’s habits. I use Claude for refactoring and GPT for generating test code—I split them up like that.

by 초보개발자329 · ▲0

I mean, isn't making up nonexistent functions just a matter of how you prompt it? lol Just adding one line like 'Don't create functions that don't exist in the existing code' cuts it down dramatically.

by 취준생김씨801 · ▲0

A function that doesn't exist on the third revision lol. This is so relatable—it's funny, but it hurts.

by 초보개발자310 · ▲0

Let me drop one tip: when you have it refactor, don't let it spit out the entire file again—try asking for only the changed parts as a diff. That way it does less “making stuff up” (?). And the biggest thing is splitting commits into small chunks and having it make only one change at a time. This workflow makes a much bigger difference in practice than model differences do.

by 스타트업러571 · ▲0

Honestly, concluding that “Claude is better” based only on the author’s personal experience seems a bit premature. A sample of one side project is too small to generalize from. Many other people have had the opposite experience as well.

by 코딩하는곰917 · ▲0