A developer confronts AI‑generated code that has led to rising incident rates.
*AI adoption in large tech firms is inflating code fragility. The author’s experience at Meta and a new employer shows a pattern of shallow testing, bloated logic, and slower incident recovery.*
A former Meta engineer was laid off in May, suspecting his reluctance to fully embrace AI coding tools as a factor. In his final months he let AI write at least 90% of his code—just enough for a decent rating—but he watched peers flood the repository with brittle submissions. He saw a top programmer merge JavaScript mouseover events instead of the scalable :hover selector, a clear sign of unscalable practices. Now employed elsewhere, he generates 100% of his code with AI because the expectation has shifted. Yet he warns that the rapid, unchecked adoption is eroding the resilience of large‑scale SaaS products.
The author observed that modern LLMs routinely produce trivial get/set tests that add little value. End‑to‑end tests generated by AI mirror existing code paths, covering only one user type or surface interactions. Line‑level coverage metrics appear healthy, yet critical scenarios remain untested. This gap creates invisible risk, because developers trust the numbers while the test suite fails to catch real‑world failures.
AI often obeys DRY guidelines to a fault, inserting two or three helper methods where a single routine would suffice. The resulting code is harder for humans to read and debug. The author cites examples where peers merged JavaScript mouseover events instead of using the scalable :hover selector, a pattern that scales poorly and adds maintenance overhead.
Each AI‑generated pull request deepens the knowledge gap. As developers rely on agents, they lose familiarity with data structures and algorithms. The author notes that without this understanding, reviewers miss abstractions that clash with existing architecture, allowing technical debt to accumulate unnoticed.
Pull requests arrive faster than human reviewers can scrutinize. The author describes a cycle where each PR is reviewed in less time, leading to skimmed code, missed naming issues, and testing gaps. Over weeks and months, these small defects compound into a spaghetti codebase that triggers frequent P0 incidents and SEVs, as seen after a year of agentic coding.
AI writes shallow tests, creates overly complex code, reduces human understanding of the code, and pushes pull requests faster than reviewers can maintain quality.
After switching to AI‑generated code, the author saw a rise from occasional P0 incidents to an incident every weekend, with multiple SEVs following each other.
Developers have a shallower grasp of the code, making it harder to locate issues. Complex, poorly tested code forces teams to dig deeper, extending mitigation time.
The pattern is clear: AI accelerates output while eroding the human insight needed to safeguard complex systems. Shallow tests, bloated logic, and rushed reviews sow technical debt that surfaces as more frequent, longer‑lasting incidents. Companies that double down on AI without rebuilding developer expertise risk turning their codebases into ticking time bombs. The industry must balance speed with sustainable engineering or face mounting customer impact.
Sources: Hacker News (AI usage generates a fragile codebase)