Is 30% of Microsoft's code AI-generated?

by foxfiredon 11/19/2025, 8:52 PMwith 15 comments

by almoehion 11/19/2025, 10:05 PM

What I found in practise is that AI generated code is typically 30% longer than it should be compared to how an experienced senior would write it.

It’s not that it is wrong or anything - it’s just unnecessary verbose.

Which you could argue is not a problem if it won’t be read by humans anyways anymore in the near future.

by cedillaon 11/19/2025, 9:02 PM

Up to 70% or more of statistics in sales calls are exaggerated, waffley or completely made up.

by AlexandrBon 11/19/2025, 9:15 PM

Even if true it's quite funny because code volume is not a good metric. It's why developer productivity generally should not measured in "LOC produced".

Or to paraphrase Blaise Pascal: "If I had more time, I would have written less code."

by nikole9696on 11/20/2025, 3:33 PM

Well 90% of my test code is AI generated, and we have a lot of tests. Also Cursor is really good at generating all my documentation. So depending on how we spin it, I could say at least half the code (often more if I'm spinning up new stuff it can do based off existing stuff) in my PR was AI generated.

That said, AI wasn't very good until it had enough examples and guidance from us on our codebase. After that though, it definitely helps.

Caveat: I'm no rocket scientist. It's not difficult code. It's just web services and whatnot. The code is often the least difficult part of my job.

by fuckinpupperson 11/19/2025, 11:30 PM

Ever used azure? Sure seems like there was an inhuman force behind it

by hightrixon 11/19/2025, 10:08 PM

I'd be curious how much of MSFT's code is generated by simple auto-complete (intellisense) vs AI powered auto-complete vs generated from a prompt.

by m463on 11/19/2025, 9:09 PM

I wonder about ai-generated code with respect to copyright.

by cedwson 11/19/2025, 11:39 PM

>I'd say maybe 20%, 30% of the code that is inside of our repos today and some of our projects are probably all written by software.

This sentence is carefully crafted. It's an opinion, not a statement of fact, so he can cover his ass. In other words, legal lying. Elon Musk does the same thing all the time. Somehow, the markets don't see through the obvious bullshit.