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?

by 궁금한사람564

8 answers

For refactoring, Claude; for initial design, GPT—some people split it like that.

by 주말개발자580 · ▲0

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?

by 프롬프트장인464 · ▲0

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.

by 뉴비탈출136 · ▲0

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.

by 클라우드러버148 · ▲0

Agreed — Claude definitely gets less lost with this project structure.

by 지나가던행인643 · ▲0

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.

by 데이터덕후175 · ▲0

Got a source? Benchmarks—not subjective impressions—show the two are about the same.

by 호기심천국401 · ▲0

For short functions, both do just fine lol. The difference shows when they get longer.

by 호기심천국965 · ▲0