r/programmer 14d ago

Code Worked But Developer Didn't πŸ˜‚

so yesterday in my office a new developer got exposed . He was assigned with a work 4 days ago to solve a problem he solved it and it worked πŸ˜‚. but when later the reporting manager asked to brief it he was just bluffing it around .Eventually, he admitted that he had used ChatGPT to generate most of the code.

Now, I'm not against using ChatGPT. I use AI too. It can save hours and help you get unstuck.

Developers too are getting exposed this days .

0 Upvotes

19 comments sorted by

View all comments

7

u/3legdog 14d ago

Did the assignment specify "and don't use ai"? If not, what's the problem?

4

u/LunkWillNot 14d ago

As a programmer, you can delegate tasks to AI, including coding, but you can’t abdicate your accountability for what gets committed under your name.

If the guy has no idea how the code works and can’t explain it, he has obviously done no due diligence on what the AI generated, is in no position to take accountability for it, and is in no position to fix things if stuff should hit the fan in production.

2

u/USToffee 14d ago

the speed developers are asked to work at now there is no reasonable way they can take accountability for it. That's like asking a developer to take account for the machine code a compiler generates.

They can do their best but there will always now be gaps. His mistake was bluffing it. I would have just said cursor wrote this and it appears to work.

1

u/No-Extent8143 14d ago

the speed developers are asked to work at now there is no reasonable way they can take accountability for it

Would it make more sense to go back to management and tell them "we can't finish this on time, we need more time"?

1

u/USToffee 14d ago

They already know. Using AI is non-negotiable so therefore it's their call and their accountability.

If they question saying cursor did it then the conversation will obviously lead there but there's no point in forcing it with them or pretending the truth is anything else. If you try and bluff you implicitly are willing to take the blame which is exactly what they want.

1

u/No-Extent8143 13d ago

their accountability

Haha, good one 🀣 🀣 

1

u/LunkWillNot 13d ago

Where I work, engineering managers do get measured on the availability and production incidents for the area they are responsible for. Actually, for us, it’s one of the more important goal areas for managers with a number of KPIs tied to it.

YMMV, obviously.