this post was submitted on 28 Oct 2024
506 points (98.3% liked)

Programming Humor

2886 readers
1 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 4 months ago (3 children)

WTAF? Is this written by a hallucinating AI?

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

I think it's a joke (maybe)

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

I don't think this is the sort of error an AI would make.

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

I’ve asked ChatGPT to create boiler plate code and it will offer these nested functions so you can change the logic in the future. It’s not smart enough to ask why you’re doing something a particular way or suggest a better alternative.