Developer catalogs 22 AI coding anti-patterns and builds tool to auto-delete them
A developer has identified 22 recurring patterns of low-quality AI-generated code, dubbed 'code slop', that appears correct but introduces subtle bugs, redundancy, and security gaps. Common issues include swallowed exceptions, hallucinated dependencies, one-implementation interfaces, restating comments, and generic variable names like 'data' or 'process'. A USENIX Security 2025 study of 2.23 million AI-generated samples found that nearly 20% referenced non-existent packages, with 43% of invented names reappearing across separate runs. The developer built an agent skill to detect and remove these patterns, demonstrating a real-world refactor that reduced 54 lines of bloated invoice-processing code to just 4 functional lines. The catalog covers not only code quality issues but also AI-generated prose and commit message anti-patterns that mimic the style of experienced engineers without delivering real substance.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in