Who's better at coding these days, Claude or GPT?
Lately I've been using both when writing code, but I can't come to a conclusion.
Claude feels like it doesn't lose the context even when I throw a whole long file at it, while GPT seems to know more examples for all sorts of libraries. What do you all use in real work?
7 answers
In practice, you ultimately need to hook it up to your company’s codebase and use it, so the one that can do that is the answer. Debating model performance is a conversation for later.
Just because GPT knows library examples well doesn’t mean they’re up to date—make sure to check whether they’re based on the latest version. There are quite a few cases where it confidently answers using syntax that was deprecated years ago.
Got a source? If there’s an article comparing them in a real project rather than just benchmark numbers, please share a link.
I just use both lol. Claude for design, GPT for the tedious boilerplate—it's easier that way.
Well, that's a bit... Looking at recent benchmarks, both have been upgraded, so aren't you talking about outdated hands-on impressions? If you don't specify the model version, the comparison is meaningless.
I disagree. For me, Claude was much better at difficult refactoring. But this depends on each person's prompting style, so generalizing is a stretch.
If maintaining long-file context is really important, "how you slice it up and feed it in" matters more than context length. I wasn’t a fan of dumping entire files; giving only the relevant functions clearly lowered the error rate.