The more I work with LLM code the clearer it is that it's terrible at it. The context window is never large enough, and RAG can fill some gaps in tightly written modular code, but LLMs specifically will not write code like that. They both can't handle bloat and write almost nothing else...
I hate reviewing LLM PRs, just had one with similar user auth checks in middleware (with a 401), DI in the service (returning null), and as static calls in every action (throw new Exception). At least 3 checks of the user with every request. We already had user auth in a library.
0 reposts1 like