Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you give an example where an LLM produced low quality Python code? Python is such a simple language. This seems hard to imagine. Plus, the amount of open source Python that LLMs can be trained upon is enormous.
 help



I am looking at an MR a colleague threw at me right now where the code quality produced is atrocious.

Multiple redefinitions of enums - except they aren't enum but random lists of strings - that also diverge in different files.

Things consistently typed as `Any` or `dict[str, Any]` even though the functions clearly are expecting specifics, not `Any`

This is the worst MR I've had to review yet in my life. Absolute garbage.


Okay, so, single point anecdata? Yeah, no, I don't belive you. Overall, LLMs are very good are writing Python. Whatever you can throw at mean in terms of anecdata can be easily defeated by 1000+ blog posts of people using LLMs to write high quality Python. See: Simon Willison!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: