Hacker News new | ask | show | jobs
by lynndotpy 528 days ago
It's very frustrating when asking a colleague to explain a bit of code, only to be told CoPilot generated it.

Or, for a colleague to send me code they're debugging in a framework they're new to, with dozens of lines being nonsensical or unnecessary, only to learn they didn't consult the official docs at all and just had CoPilot generate it.

:(

4 comments

Missing the days when you had to review bespoke hand-crafted nonsense code copy-pasted from tangentially related stack overflow comments?
With my current set of colleagues, I hadn't had to do that, no actually. The bugs I could recall fixing were ones that appeared only after time cleared its provenance, but the code didn't have that "the author didn't know what they were doing" smell. I've really only run into this with AI generated code. It's really lowered the floor.
Hah, we had a common dev chat where we discussed problems and solutions. It worked great.

Then one guy started unabashedly pasting ChatGPT responses to our question...

It got silent real fast.

That "one guy" is the manager?
Programmer turned manager, yes :)
I had a hunch in that direction.
Don't be sad. Before LLMs, they would have copied from a deprecated 5 year old tutorial or a fringe forum post or the defunct code from a stackoverflow question without even looking at the answers.
That was still better, because you could track down errors. Other people used the same code. Chatgpt will just make up functions and methods. When you try to troubleshoot no one of course has ever had a problem with this completely fake function. And when you tell chatgpt it's not real it says "You're right, str_sanitize_base64 isn't a function" and then just makes up something else new.
“To what extent you necessary?” Might focus minds a bit.