But, ChatGPT... I got this code from chatGPT.
"AND I DID MY BEST--OKAY"
I had an inverse experience after an adult beverage or two and talking to someone about a third party's script they found unsatisfactory. It went about like this:
Zak: filename.py sucks
Claude: What's wrong with it? Bugs? Code quality? Features?
Zak: yes
Claude rewrote it, claiming it had "multiple issues". It found and corrected a major bug, added error handling, and improved command line argument handling.
Someone's been training ChatGPT on old StackOverflow help posts.
This should be a new challenge where you write code so bad that AI cannot even guess what it should do.
I can write text in a dead language that very few know how to read or speak.
ChatGPT has no problem responding to my text with random characters from that language.
When asked if it understood what I said: it made up fake translation and even translated the meaningless text it wrote earlier.
TLDR; At least ChatGPT will never say I can't understand your code
Perl?
It would have to be a more obscure, archaic language that's barely even spoken of on the internet.
I asked ChatGPT once about their proficiency in languages, both human and computer. They responded that they are most proficient in English and Python, largely because they are the most written/documented languages on the internet.
I forgot where it ranked other languages...I think it said it was pretty decent in Mandarin and most latin-derived tongues. I uninstalled the app so not about to go through my chats with it and try to find it.
However, ChatGPT is known to write in ways to appease the user, and I've almost exclusively spoken to it in English and asked it python questions.
I do wonder if somebody who primarily used ChatGPT in, say, French, and account history had a lot of C questions, if it would answer differently.
ChatGPT can't construct LSL (Linden Scripting Language that runs Second Life) code for shit in my experience. Maybe try that.
Perl is fine so long as you write code based on the assumption it will be maintained an idiot that doesn't know the code at all and needs hand holding. And that is why 6 months later I can understand the code I wrote.
Is the idiot you?
Because I'm usually both the person writing it and the idiot trying to maintain it 6 months later.
Albeit not perl. Dammit Jim, I'm a Network engineer, not a programmer!
My experience has been the more I assume I am an idiot and plan accordingly, the less true it is in practice.
New?
My fave is when I asked Claude to help out and it reads my code and comments inline and then tells me “stupidmanager, im not sure what you were doing and your comments show you weren’t sure either”
Wish I got a screenshot.
Also, I almost as quickly fixed the issue after asking Claude and then asked for a review to which I told me I probably should hide the comments.
Not sure when Claude got snark installed, but it’s to a point where I have a rule prohibiting it.
This must be the real reason AI is so divisive among developers.
can't be worse than that screen
Maybe this career is not for you...
Is this the chatbot equivalent of “you spelled the word so wrong, even autocorrect can’t help you”?
Programmer Humor
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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics