Is there really a difference in code quality between Claude and GPT?
These days I switch between both when doing backend work. For writing short functions, honestly they seem similar, but when setting up project structure or refactoring, Claude feels like it wanders less.
But I'm not sure whether this is a real model difference or just a day when I wrote good prompts lol. What's everyone's experience?
8 answers
For refactoring, Claude; for initial design, GPT—some people split it like that.
Isn't that old news? Since the recent models came out, I can barely feel a difference. If anything, Claude seems to forget earlier parts when the conversation gets long—is it just me?
The fact that you're even wondering whether it was a day you wrote a good prompt is already the answer lol. There are too many variables you can't control, so you can't trust your gut. I just run the same task three times and compare the results. But even that comes out differently from day to day lol. In the end, the answer is to go with whatever you have to keep hands-on tuning.
I felt the same way. Especially when doing refactoring across multiple files, GPT often made up functions that didn't exist, while Claude tended to lose less context. Of course, as the models have been updated, that difference has narrowed a lot.
Agreed — Claude definitely gets less lost with this project structure.
Well, that's a bit... honestly, it's a difference in prompts, not something I'd call a difference between models. I think we should run A/B tests a few times with the same prompt before drawing conclusions.
Got a source? Benchmarks—not subjective impressions—show the two are about the same.
For short functions, both do just fine lol. The difference shows when they get longer.