Interesting experiment: I took a standalone function I knew to be correct and as...

@kevlin@mastodon.social

Interesting experiment: I took a standalone function I knew to be correct and asked three chatbots (ChatGPT, Gemini and Claude.ai) to determine its correctness.

None executed the code (it was TypeScript, as opposed to Python), all of them reasoned through the code, but only one of them did so correctly.

Given Anthropic's reputation in the dev space, it's perhaps unsurprising that Claude got it right. Both ChatGPT and Gemini identified non-existent bugs — "You are completely right."