32% of senior developers report that half their code comes from AI, double the rate of juniors

Skye Jacobs

Posts: 1,917   +58
Staff
Cutting corners: A new survey offers a detailed look at how GenAI is transforming the daily work of software developers. The results reveal a clear divide: seasoned engineers are more likely to rely heavily on AI-generated code, take on the task of correcting it, and still view it as a net time-saver. In contrast, junior developers appear more cautious, adopting AI tools at a slower pace and reporting fewer gains in efficiency.

A new survey from cloud platform Fastly shows that an increasing number of experienced developers are not only generating substantial amounts of code with AI tools but are also deploying that code to production at significantly higher rates than less experienced engineers.

In the poll of 791 professional developers, nearly one-third of senior engineers, defined as those with 10+ years of experience, reported that over half of the code they ship is AI generated. That figure is more than double the rate among junior developers with two years of experience or less, only 13% of whom reported the same.

These findings point to both a higher rate of AI usage among senior engineers and greater trust in machine-generated code once it reaches production.

This trend contrasts somewhat with industry concerns about vibe coding, a term used to describe a new "style" of software development where engineers provide only prompts to a chatbot, then use the AI's answer to iteratively refine the application. In this approach, the AI is essentially directed like a junior developer. A common challenge with vibe coding is that AI-generated code may appear correct on the surface but can contain serious flaws or vulnerabilities.

The survey also highlights a gap between perceived speed and the reality of editing. 28% of developers said they often spent so much time fixing or rewriting AI-supplied code that any potential benefits were largely erased. Another 14% said they rarely needed to make significant changes.

Still, more than half of all participants reported that AI tools, including GitHub Copilot, Google Gemini, and Anthropic Claude, helped them work faster. Senior engineers expressed stronger enthusiasm, with 59% saying AI sped up their work, compared to 49% of junior developers.

Seniors were also twice as likely to report substantial time savings, even though they said they spent more effort fixing AI's mistakes.

One senior developer wrote in the survey that "AI will bench-test code and find errors much faster than a human, repairing them seamlessly. This has been the case many times." A junior respondent pointed to the frustrations: "It's always hard when AI assumes what I'm doing and that's not the case, so I have to go back and redo it myself."

The contrast between juniors and seniors may have less to do with enthusiasm than with expertise. While just over half of junior developers described AI assistance as making them moderately faster, only 39% of seniors said the same. Instead, a quarter of senior respondents said AI made them "a lot" faster, about double the proportion of juniors.

Fastly offered one likely explanation: experienced developers tend to be better at detecting subtle flaws in code. That experience enables them to identify when AI-generated output appears correct but behaves incorrectly, making them more efficient at correcting mistakes without losing momentum.

The survey also underscores a common paradox of AI tools. Many developers say the technology helps them feel faster, but outside research suggests otherwise. Fastly's survey findings come on the heels of a randomized controlled trial from earlier this summer, which found that experienced open-source developers actually took 19% longer to complete tasks when using code assistants. According to Fastly, the discrepancy may stem from psychology: rapid autocomplete creates an early sense of progress, but the need for extensive revisions later erases some of those gains.

While efficiency gains remain uneven, the impact of AI on job satisfaction is much clearer. Roughly 80% of developers across all experience levels said coding felt more enjoyable when working with AI.

One survey participant described this trade-off: "GitHub Copilot greatly helps my workflow by suggesting code snippets and even entire functions. However, it once generated a complex algorithm that seemed correct but contained a subtle bug, leading to several hours of debugging."

While efficiency gains remain uneven, the impact of AI on job satisfaction is much clearer. Roughly 80% of developers across all experience levels said coding felt more enjoyable when working with AI. For some, the appeal lies in removing repetitive tasks. For others, it's the novelty of generating usable code on demand. In an industry plagued by burnout and backlogs, this morale boost may prove valuable even if productivity gains remain elusive.

Sustainability emerged as another central theme. The survey found that developers are increasingly aware of AI's environmental costs, including its significant carbon footprint. Two-thirds of respondents acknowledged these energy demands, and most reported incorporating green coding practices into their work. Adoption of these practices rose with experience, from just over half of junior developers to nearly 80% of mid- and senior-level engineers.

Permalink to story:

 
"Fastly offered one likely explanation: experienced developers tend to be better at detecting subtle flaws in code. That experience enables them to identify when AI-generated output appears correct but behaves incorrectly, making them more efficient at correcting mistakes without losing momentum."

this. AI often is a gibberish, but still takes time from mundane part of the code. With time the issues are really easy to spot and to fix while keeping over code quality up to the standard. It helps as well to write a prompt highlighting the expected approach and methodology used.

But for juniors is more or less poisoned wine. They won't be able to see those issues and will spend a lot of time trying to find why stuff doesn't work. Difficult to say how good it will be in a long time, but already there are some commits pattern visible: they produce a lot of unnecessary code, which wouldn't be there if they knew what's going on. In short, get ready for the performance impact across the board unless given org have proper and thick performance test automation in place. In that case juniors will cry a lot...
 
I think power use, as noted in the article, is another part of the puzzle that's often ignored. Everything in this universe comes down to energy, and when you push one brick in, another comes out elsewhere. The metric would be working lines of code per watt, and clearly, the human brain is going to be vastly more efficient. In other words, we want Core and Ryzen, not Bulldozer and Prescott.

I wonder if the decline we see in Windows' quality is not partly due to a rise in AI-generated code.
 
@skye-jacobs The chart in the article tells a somewhat different story than the title of the article. Yes, the title is technically correct, however, is it just click-bait? I won't bother to quote the chart, since, IMO, its obvious. IMO, it would be more interesting to state how many developers as a whole say they use AI.

And with fully 2/3 of developers reporting that they have to spend time correcting AI generated code, its no wonder that developers report that it takes them longer to do their job when they use AI than when they don't. :rolleyes:

IMO, AI has a long way to go. In my field, AI would be a hindrance. I write highly technical code, and by-the-way, I'm a "senior" developer with 25+ years doing so.
 
From what companies was this surveyed? I believe this does not represent the industry average, and percentage of senior developers using AI is significantly smaller.

Those numbers are skewed; they must be coming from AI-promoting companies.
 
I would expect that junior developers don't understand how to engineer software and just assume that the AI to do all the work for you. In my case, and I would assume other senior developers, engineer and design what they need to do first. AI may even help with that, but the core AI code generation comes after that, and because there is an engineering design for follow, the code generation is significantly better. What also usually happens with senior developers is an iterative process of design, build, and test. This is what makes it work for them. They have developed a process. Junior engineers/coders just hope the AI will do all the work for them.

In addition, as stated in the article, senior developers know junk code as soon as the see it. When I generate code, I read it first, digest it, and try to ensure it looks right before using it. Junior developers likely just assume it is correct and just try to use it as it. If it doesn't work right, they have no idea why.
 
I wonder if the survey was compromised by AI companies... At the company I work, no one is experiencing drastic speed improvements or managing to generate that much AI generated code to my knowledge.
 
Back