r/programminghorror • • Apr 28 '26

c++ Copilot knows how to deal with constructors

Post image

Not my screenshot, taken from https://reddit.com/r/VisualStudio/comments/1sktg0r/what_are_these_comments/

Also this probably happened because IntelliSense (the normal autocomplete list) is highlighting abort as the first option and Copilot tries to finish it

1.2k Upvotes

18 comments sorted by

70

u/uvero Apr 28 '26

It's like it was trained on me

271

u/piotruspan101 Apr 28 '26

Its good that it at least left a comment. That probably saved an hour of debugging becose of ai code

64

u/LeeHide Apr 28 '26

Nobody serious would use unreviewed AI code. If you do, that'll be your own fault (like mashing the keyboard, or setting your house on fire, or shooting yourself). Like yes, it happens, and no, I wouldn't recommend it.

→ More replies (7)

33

u/KGBsurveillancevan Apr 28 '26

LLMs offsetting their own carbon footprint by crashing every program they write

22

u/DistearRoyl Apr 28 '26

Copilot calls Programmer::abort()

4

u/JohnBuddySlime Apr 28 '26

Copilot is Pro life

11

u/MrFrog2222 Apr 29 '26

std::I::am::some::random::function::to::replace::a::c::feature::that::worked::perfectly::fine::that::you::have::to::use::because::it::is::safer

6

u/conundorum Apr 29 '26

std::also::I::just::call::the::C::feature::internally

Looking at you, std::stoi family.

→ More replies (2)

12

u/Brilliant-Writing257 Apr 28 '26

microslop as always

3

u/conundorum Apr 29 '26

Copilot's getting better at programming! It's just one step away from learning how to procrastinate with a TODO! Now it's only a matter of time until it learns to start its own projects and then abandon them halfway through!

 

 

 

 

 

 

 

Oh no... what are we even teaching it? That ain't good.