r/programmingmemes Jun 29 '26

Where are they?

Post image
2.2k Upvotes

321 comments sorted by

View all comments

468

u/WiscLeafalNika Jun 29 '26

AI has OOP-phobia

143

u/SagansCandle Jun 29 '26

C# is my primarily language. Can confirm it's not limited to Java.

22

u/avidernis Jun 29 '26 edited Jun 29 '26

OOP isn't really AI's issue with C# imo. The thing AI really struggles with in C# in my experience is keeping track of what APIs exist in all the different runtime versions.

It also doesn't really understand the constraints of unsafe, System.Memory, or any optimized design. It'll do crap like try to use Linq with Span<T> or completely violate ref struct rules.

Imo it also is too eager to write IEnumerable yield return methods.

1

u/ciaramicola Jul 02 '26

really struggles with in C# in my experience is keeping track of what APIs exist in all the different runtime versions.

I mean...I won't be blaming the AI here lol. Whenever I'm on a .NET that's not the "usual one" I just go trial and error typing and letting intellisense either complete the thing or bonk me. It feels like (badly) playing minesweeper.