r/ProgrammerHumor • • Sep 06 '26

Meme cleaningUpTheMess

Post image
16k Upvotes

474 comments sorted by

View all comments

Show parent comment

20

u/NeonFraction Sep 06 '26

I spent years documenting and commenting my code extremely well. It was probably the most helpful favor I ever did myself and I was extremely proud of it.

Now it’s a sign of AI.

…I’m tired man.

22

u/petrasdc Sep 06 '26

Nah, I can definitely tell the difference. AI leaves comments with unnecessary random details that no normal person would ever include. It also tends to write like paragraph long comments with unrelated bits of information. I've seen it write comments for functions that take longer to read and understand than it takes to literally just read the code and fully understand it.

8

u/TheNewAspect Sep 06 '26

int universeMeaning= 42;
int* ptr = &universeMeaning;

// Establish a pointer to the memory address occupied by the variable containing the fundamental meaning of existence. Rather than redundantly allocating a second integer and copying the metaphysical constant therein, we instead retain a reference to the original manifestation of universal purpose, allowing subsequent operations to access the value indirectly through its location in memory. The pointer itself contains not the meaning (42), but the precise coordinates at which meaning may be found. This is, technically speaking, unnecessary for an integer of this magnitude, but demonstrates the foundational principle of indirect memory access upon which much of modern computing rests. In short: the universe means 42, and we have acquired its address.

6

u/BriefSpecial420 Sep 06 '26

More tokens to burn! $$$

3

u/TheNewAspect Sep 06 '26

I will still remain upright at night feeling regret for posting that. All I asked was for ChatGPT to write documentation for a C++ pointer (the object names I gave) to explain it

1

u/LiminalStorms Sep 06 '26

You joke, but my CS professor loves comments like this.

1

u/TheNewAspect Sep 06 '26

Not a good professor. THough maybe I'm not a good software engineer. I tend to only leave detailed comments when I was stumped before writing the code, or when things link too much to another object that is necessary while not seeming necessary.

1

u/NeonFraction Sep 06 '26

Thanks. This actually makes me feel a lot better!

20

u/bureX Sep 06 '26

Trust me, I know the difference between someone documenting something and AI slop.

AI slop usually describes the code in unnecessary detail and then provides very thin context.

5

u/unipleb Sep 06 '26

Reminds me that many years ago in an intro to web class, we had an assignment to make a website in Dreamweaver where we were mostly shown how to use inline styled html tables for a layout, but were given freedom to make what we wanted. I was ambitious and wanted to use divs and CSS with an external stylesheet. So to try and prove that I was understanding what I was teaching myself I took extra effort meticulously commenting all of the CSS, explaining what everything did. The instructor feedback was that I shouldn't have used an online template, which they assumed I'd used because of all the commenting throughout the CSS file. Facepalm moment because I'd written all of those.

2

u/ward2k Sep 06 '26

Yeah I went overboard during my dissertation commenting code since we'd get marked down for not explaining something obtuse, but wouldn't lose any marks for going overboard. So it was the safest option

Today if I did that I'm pretty sure I'd fail because they'd assume it was vibe coded

3

u/McRawffles Sep 06 '26

Good comments are as useful as the code itself. Nobody, not even yourself, is going to remember the reason you made all the decisions you did

Don't stop or feel bad about doing something just because AI does it. AI is literally sourcing what it does off of us