this post was submitted on 19 Jul 2024
1028 points (98.6% liked)

Programmer Humor

19652 readers
2086 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
1028
Googling (programming.dev)
submitted 4 months ago by JPDev to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 30 points 4 months ago (2 children)

That's actually a valid skill to know when to tell the AI that it's wrong.

A few months ago, I had to talk to my juniors to think critically about the shitty code that AI was generating. I was getting sick of clearly copy-pasted code from chatGPT and the junior not knowing what the fuck they were submitting to code review.

[–] [email protected] 22 points 4 months ago (1 children)

Should start asking them like, why did you do this? Why did you chose this method? To make them sweat :p

[–] sukhmel 6 points 4 months ago (1 children)

That used to make sense when LLMs were not the thing, when evaluating assessments from students, half of which asked someone else and didn't bother to even read the code

[–] [email protected] 13 points 4 months ago (1 children)

If no one can make sense of the change, then you reject it. Makes no difference if it was generated with an LLM or copy-pasted from Stackoverflow.

[–] [email protected] 5 points 4 months ago

I just ask ChatGPT to review pull requests.

[–] [email protected] 3 points 4 months ago (1 children)

I'm trying to convince a senior developer from the team I'm a member of, to stop using copilot. They have committed code that they didn't understand (only tested to verify it does what it's expected to do). I doubt it'd succeed...

[–] [email protected] 2 points 4 months ago (1 children)

Co-pilot is amazing and terrible at the same time.

When it's suggesting the exact line of code I expect to write, amazing. When it can build the permissions I need for a service account for a TF module I've written, amazing

However, it will suggest poorly formed, un-optimized code all too often.

That said, knowing when to use/not use/modify the suggested code has greatly improved my productivity and consistency.

[–] [email protected] 1 points 4 months ago

I wish all this AI stuff was limited to just creating a new coding language. That I can get behind, sharing programming information is not the same as copying others art.