All 4,804 reports

MixedClaude · 26 May 2026

The code that Sonnet produces for Go is much better than the Python it creates

bfivyvysj on Hacker News

In the thread “Use boring languages with LLMs”, replying to this comment

Helped: Go codebase structure leads to better generated code.

Got in the way: Python code generation results in spaghetti-like code.

I use both go and python in my day job. The code that Sonnet produces for Go is much better than the Python it creates. This could be because our go code is typically smaller more defined services but I don't really believe that since even the isolated python services are pretty spaghetti looking.