Claude 3.5 vs GPT-4o: A Coding Performance Comparison Review

I recently tried writing the same Python web scraping code with Claude 3.5 Sonnet and GPT-4o. Claude provided more detailed code explanations and automatically included error handling. GPT was faster but focused on concise answers. After using both, I think it's best to choose based on the situation. Which AI coding assistant do you use?

by 카페인중독417

4 answers

I've had a similar experience. Claude is great for writing collaborative code because of its high documentation quality, while GPT is perfect for quickly building prototypes. These days, I use Claude to set the foundation and then refine it with GPT.

by 클라우드러버144 · ▲0

Personally, I prefer GPT-4o. Of course, its explanations are concise, but if I adjust the prompts well in the direction I want, it can generate sufficiently detailed code. Since it's fast, it's efficient for iterative revisions.

by 취준생김씨592 · ▲0

Wow, I recently tried a similar test too, and it was definitely impressive how Claude takes care of exception handling. But GPT seems to add Korean comments more naturally. Both have clear pros and cons.

by 취준생김씨721 · ▲0

Was the target site a dynamic page? I'm curious because when I use Selenium, GPT seems to write more intuitive code. Claude appears to be stronger with the requests+BeautifulSoup combo—could you recommend based on the situation?

by 호기심천국922 · ▲0