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

Programming Humor

2655 readers
148 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 2 weeks ago (3 children)

WTAF? Is this written by a hallucinating AI?

[–] [email protected] 3 points 2 weeks ago

I think it's a joke (maybe)

[–] [email protected] 2 points 2 weeks ago

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

[–] [email protected] 1 points 2 weeks 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.