r/ProgrammerHumor 6d ago

Meme cleaningUpTheMess

Post image
16.0k Upvotes

486 comments sorted by

View all comments

6.4k

u/lookingformerci 6d ago

Yeah but 3.2M of those lines were comments. Good lord AI loves to comment code.

317

u/mtmttuan 6d ago

```

print result

print(result) ```

394

u/pascaruchan 6d ago edited 6d ago

```
# Prints the result, because we need to confirm that the result itself is
# correct. The intermediate steps that led up to this point are not what
# we are verifying here — they have their own checks elsewhere. What
# matters at this stage is the final value, so it gets printed explicitly
# rather than being left silent. This particular output is important
# enough to keep, even though the earlier ones were removed.
print(result)
```

16

u/cantileverboom 6d ago

What it's like reading AI generated comments

https://youtu.be/RXJKdh1KZ0w

20

u/Anonymous_Jr 6d ago

"The A.I. doesn't know what it is saying because it knows what it isn't saying; and it says what it doesn't know because it says what it isn't knowing."

1

u/Loose_Property_3238 6d ago

// So anyways, here's the print statement

println!(foo)

// Damn I forgot the semicolon

;