Controversial take about the quality of the code generated by AI

Reddit r/AI_Agents News

Summary

The author shares observations about common criticisms of AI-generated code quality, arguing that expectations for perfect, maintainable output from these tools are often unrealistic.

I'm reading lots of people on reddit ranting about the quality of the code generated by AI (even frontier models). Most of the points I see are valid: - Unreadable code - Redundant and duplicated logic - Overuse of comments - Cosmetic tests - etc A bit of context about me: I have worked on big projects following different architectures in both IT services companies, big financial institutions and startups in my career. During my career, I've never ever seen a clean codebase and people writing code up to the standards people are expecting from AI and that's kinda baffling me. It's almost like people forget that shit/unmaintainable code already existed and would still exist, even without using AI to generate it. I feel like people are expecting too much from these tools or are using it poorly (unoptimized workflows, repositories, conventions etc). Still, they are expecting the code generated by AI to work perfectly on the first prompt while following standards they probably wouldn't even follow themselves if they had to write it by hand, without making any effort into review, tweaks, etc. That is, in my opinion, extremely delusional. Downvote me to oblivion, tell me I'm wrong or roast me, I'm prepared for it.
Original Article

Similar Articles

AI Generated Code Quality

Reddit r/AI_Agents

The article discusses concerns that as AI tools generate increasing amounts of code, future models trained on this synthetic code may suffer from reduced quality and originality, and asks how major AI labs like OpenAI, Anthropic, and GitHub plan to address this issue.

Writing quality code in the age of AI

Reddit r/artificial

The article discusses the challenges and best practices for writing high-quality code with AI assistance, emphasizing the need for rigorous code review and avoiding blind trust in AI-generated output.

On AI Coding and Its Discontents

Lobsters Hottest

Cal Newport reflects on the initial enthusiasm for AI coding tools like Claude Code and the growing disillusionment among developers due to hidden bugs, quality issues, and unsustainable workflows, arguing that outsourcing all code production to AI is not currently viable.

When I reject AI code even if it works

Hacker News Top

The author explains why they often reject AI-generated code even when it works, citing reasons like inability to explain the approach, overly large diffs, premature abstractions, and reduced system reasoning, and argues for mandatory human review.