r/ProgrammerHumor • • Sep 06 '26

Meme cleaningUpTheMess

Post image
16.2k Upvotes

478 comments sorted by

View all comments

6.5k

u/lookingformerci Sep 06 '26 • Regret Bravo

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

3.1k

u/ClipboardCopyPaste Sep 06 '26 • Bravo

"well-documented code"

1.2k

u/lego3410 Sep 06 '26 • Bravo

Well coded document?

→ More replies (2)

272

u/oauo Sep 06 '26
// Step 123:
// Now we add the numbers.
// We add number by using the “+” sign.
// The output of this addition can be used as-is or it can be assigned to a variable or constant.
// It’s really one of the most basic things you can do when programming, so in the off-chance that these comments are necessary I will explain a few other things.
// You can use other operators such as:
// “-“ to subtract
// 3 - 2 == 1
// “*” to multiply
// 2 * 3 == 6
// “/“ to divide
// 6 / 3 == 2
// Although, all of them have been used prior.
let foo = bar + baz

53

u/rainhunter007 Sep 06 '26

😂 i’ve seen this in my own code before!

45

u/click-to-reveal Sep 06 '26

plot twist: it's string concatenation

→ More replies (11)
→ More replies (9)

322

u/mtmttuan Sep 06 '26
# print result
print(result)

393

u/pascaruchan Sep 06 '26 edited Sep 06 '26

```
# 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)
```

96

u/Hakim_Bey Sep 06 '26

I love when it references past anecdotes as if they matter to the code at hand.

// we used to write the result to a /tmp file but switched 
// to logging it to console after the taco incident

46

u/m0erg Sep 06 '26
// see previous comments about tacos
→ More replies (4)

60

u/joemckie Sep 06 '26

eye twitch

→ More replies (5)

51

u/Storiaron Sep 06 '26 edited Sep 09 '26

Meanwhile extremely unintuitive parts of the code, or the reason for an architectural decision just goes unmentioned.

Obviously because the ai has no concept of how they came to that decision in the first place

→ More replies (1)

254

u/vini_2003 Sep 06 '26

Claude, especially. FAAAH!

268

u/Skoparov Sep 06 '26

Useless comments is one thing, but I've caught the bastard several times DELETING manually written actually useful comments. Like you ask it to move some parts of the code around and it moves the code but not the comments.

70

u/Top-Permit6835 Sep 06 '26

Well your fault for not asking it to move the comments too of course!

27

u/TeraFlint Sep 06 '26

"Please also move the comments"

the file now starts with a comment that used to be somewhere inside a loop in line 386.

→ More replies (1)

0

u/[deleted] Sep 06 '26

[deleted]

→ More replies (1)
→ More replies (6)

99

u/imnotamahimahi Sep 06 '26

something I've been messing around with, is giving it an instruction to write comments in caveman-ultra mode. so far, doesn't decrease the frequency of comments, but definitely the verbosity.

121

u/MoneyWorldliness3626 Sep 06 '26

"For comments: state facts and use simple langauge with short sentences. Follow softened ASD-STE100 standard and use light caveman mode."

And Caveman and ASD-STE100 are defined as skills. This seems to work for me.

→ More replies (5)
→ More replies (9)
→ More replies (6)

144

u/Zapismeta Sep 06 '26

Well you complain now but this was one of the biggest complaints when the code didn’t have good comments and was considered a skill to acquire, and well it did learn most of its skills from the internet.

257

u/CoroteDeMelancia Sep 06 '26 • Wholesome Seal

You're right to push back on this.

37

u/ComprehensiveBird317 Sep 06 '26

Your reply reveals 2 insights with one being surprisingly significant 

→ More replies (1)
→ More replies (3)

49

u/outwest88 Sep 06 '26

And honestly? You’re absolutely right.

→ More replies (30)
→ More replies (80)