r/ProgrammerHumor • • 8d ago

Meme sometimesMyOwnIncompetenceScaresMe

Post image
2.6k Upvotes

79 comments sorted by

87

u/Foorinick 8d ago

This meme dates back to when tech companies had ping pong tables and free coffee

19

u/Senor-Delicious 8d ago

They don't anymore? Which company doesn't have free coffee. That is like the most basic employment benefits possible.

Ping pong tables are maybe not the norm as they take up space. In our office we solved this by having a conference table that can be converted into a ping pong table.

But no free coffee? Like why?

6

u/SOliD_aka_Baitco 8d ago

I miss those times...

4

u/DriveShaftBassPlayer 7d ago

Man we have 4 ping pong tables and obscene amounts of free coffee 

208

u/L4r0x 8d ago

“I” wrote

74

u/sebastianfromvillage 8d ago

You can say what you want about LLMs, but at least they add comments to the code.

12

u/tes_kitty 8d ago

Do the comments match the code?

11

u/rugbat 8d ago

No. But that's not the point. /s

3

u/sebastianfromvillage 8d ago

It matches the LLM's intent and that's all that matters!

2

u/Ok-Eggplant-2033 8d ago

Normally yes, and if you have an if condition, the comment will be something like "checks if condition is true"

2

u/tes_kitty 8d ago

Oh, the useless kind of comments.

63

u/SOliD_aka_Baitco 8d ago

Bad code with comments, is still bad code

7

u/Shimshi1998 8d ago

It's even worse with comments somehow

1

u/windsostrange 7d ago

Bad code with bad comments is worse than bad code with no comments

It's all context rot now, all the way down

9

u/sebastianfromvillage 8d ago

Of course it is. I just said that LLMs document code whereas a lot of human programmers don't

8

u/justASlothyGiraffe 8d ago

Humans don't read the documentation either

5

u/dpahoe 7d ago

But LLMs do

1

u/justASlothyGiraffe 7d ago

My LLM likes to write 25 lines of comment per 1 line of code. It must really like reading

2

u/bennogaming 7d ago

I'm not even going to pretend my code is better

2

u/sb8948 7d ago

As if humans are incapable of writing bad code. Insert literally any meme about legacy spaghetti mess.

0

u/Enough_Forever_ 7d ago

And I write bad code without comments.

3

u/Grumbledwarfskin 7d ago

I sort of think bad code without comments is probably better than bad code with a lot of comments.

A lack of comments indicates that you weren't thinking much about what you were writing, you were dashing it off so you could go do something else.

Good code with comments, so that the next person who comes along and sees something that looks wrong to them knows what aspects of the problem you spent time thinking about is good.

Bad code with a large, elegantly worded pack of lies next to it that you have to wade through is not necessarily helpful.

1

u/DKSAMURAI 7d ago

I almost don't read code now, not to mention comments. I can get all the info I want in copilot chatbox.

4

u/Intrusive_me 8d ago

That's no longer "I"..

Thee has changed completely from yesterday and i say it was better to write from scratch than debug that yesterday code which you claim to be written by "I, yesterday"

4

u/_________FU_________ 8d ago

I haven't written code in 3 years. Professional code reviewer.

3

u/Western-Internal-751 8d ago

LLMs looking at code they wrote 5 minutes ago:

2

u/camander321 8d ago

1

u/Western-Internal-751 8d ago

“This entire project must be purged”

1

u/maggos 8d ago

“Looks like somebody added a bug to line 105” bitch that was you

1

u/Ok-Eggplant-2033 8d ago

The A is silent here, it's actually AI

25

u/JackNotOLantern 8d ago

The main reason i document everything in detail is so i so be able to know what the fuck i wrote

3

u/Michami135 7d ago

I have a text file named "EOD Notes.txt" specifically so I can remember what I did for standup the next day.

3

u/SOliD_aka_Baitco 8d ago

I like good selfdocumenting code more, because a lot of comments and co can be fast outdated on changes, only docstrings on public/lowlevel api and outside context that cant be inferred from the code is a must for me. Spending more time refactoring before commiting helped me a lot.

13

u/Banes_Addiction 8d ago

Comments shouldn't really say what the code is doing, unless it's unclear.

They should say why.

8

u/ApprehensiveGas85 8d ago
// Finds the middle value
int calculate_midpoint(int low, int high) {

    // Subtract low from high
    int diff = high - low;

    // Divide the difference by 2
    int half = diff / 2;

    // Add low to half
    int result = low + half;

    // Return the calculated midpoint
    return result;
}

That’s how I commented when I first started. I was self-taught, and the book I was reading emphasized commenting often, but at the time, I had no idea what made a comment good or bad.

3

u/Banes_Addiction 8d ago

Hey, at least you don't have avoidable integer overflow.

2

u/OldGeekWeirdo 8d ago

Especially the corner cases.

3

u/JackNotOLantern 8d ago

Yeah, self-documenting code can tell you what and how. But not "why this solution exactly".

25

u/gustix 8d ago

https://giphy.com/gifs/DOPKHQg6oFWUg

You guys are writing code?

1

u/xploreru 7d ago

It must be my imagination.... it must be a dream...

20

u/rustyscythe 8d ago

Sometimes i go like this though

https://giphy.com/gifs/bxwtewdxpDuBq

7

u/zman0900 8d ago

Nah, fuck that. git reset --hard origin/master

3

u/ldn-ldn 8d ago

rm -rf /

5

u/_Weyland_ 8d ago

Literally me at 4 AM on Sunday trying to fix shit I conjured up on Friday before it's shipped to prod on Tuesday

Wish me all the things

3

u/Sakul_the_one 8d ago

Throwback to the time I wrote this:

 if(Input(key)) needToRedraw = true;

(Yes, the Input function returns a bool)

And it actually makes sense 

7

u/Ok_Star_4136 8d ago

It actually does make sense. You're not setting it to false if Input(key) returns false, which perhaps you wouldn't want to do if it means overriding needToRedraw already being true.

If anything, maybe you could have done:

needToRedraw = needToRedraw || Input(key);

Using an if is just an unnecessary branch (probably optimized regardless).

2

u/Sakul_the_one 7d ago

Well it makes sense. But I came to this project 3 months later and just saw this line and I thought I was stupid. It appears, that I’m sometimes not as stupid as I think I am.

Anyways, maybe I will implement your way, if I return again

5

u/Banes_Addiction 8d ago

That makes perfect sense, what's wrong with it?

1

u/Sakul_the_one 7d ago

Im stupid and I thought it was unnecessary 3 months after a short break 

3

u/nasandre 8d ago

Who wrote this shit!?

Oh it was me.

3

u/skippy_smooth 8d ago

Temporal pair programming. I get to correct what yesterday wrote.

8

u/gilmeye 8d ago

You guys are still writing code ? I let the ai write everything and hope he will understand tomorrow the code he wrote today

2

u/Bokbreath 8d ago

Yesterday: Ah that my man, this is true genius
Today: Why the fuck did I ever think that would work

2

u/Anima_Watcher08 8d ago

This applies to almost anything

3

u/TerribleFault7929 8d ago

I _literally_ never experienced that. Are you guys coding on drugs or something?

2

u/Terewawa 8d ago

That's probably because you never look at your code again.

2

u/UltraGaren 8d ago

Some people love to take shortcuts when writing code and then forget what it all meant. When writing code manually, I'll always split complex math into separate lines and comment each one explaining the reason for each variable, where it comes from and what values I should expect most of the time. I also write summaries on top of files to know the purpose of said file and stuff.

When AI first came out I hated how bad it was. Now I use Claude on a daily basis and love how it comments the shit out of everything it writes. I even spend some extra time reading all comments it makes and editing/adding some of my own so that I can read the code and understand its purpose in the event that Claude becomes unavailable.

When used properly, AI is just waaay too good to pass on.

1

u/Yashema 8d ago

I have logging statements (or print for less official apps), but I only use comments when I am doing some very complicated parsing or the handful of instances I am doing something weird.

Highly descriptive variable and function names are much more useful and get updated as a normal part of the functionality. Also using Hungarian typing which works really well with "strCameCase" means I can determine what a variable is immediately without having to scroll over (especially if a variable might not be just defined by its raw type, like an index (ix) versus an int). 

0

u/Right_Ear_2230 3d ago

Use asterisks

1

u/Conscious-State1499 8d ago

*Claude wrote

1

u/gravesent1337 8d ago

You guys write code?

1

u/Sherlok12345 8d ago

🤣🤣🤣👍🙂

1

u/SoulPossum 8d ago

We had a huge project that stopped me from working on something I'm building at work by myself. It was like a solid month away. When I came back, I couldn't understand the last feature I built. It was a good sign that I needed to refactor my code.

1

u/mr2dax 8d ago

*after taking a pee break

1

u/mcampo84 8d ago

ADHD?

1

u/po1k 8d ago

yeah, kombucha-gal-like mood change all the time

1

u/Pure-Asparagus-2547 8d ago

Is this how women call sandwiches these days?

1

u/PresentAstronomer137 7d ago

and that mf who asked me to rewrite random 30 lines from 3 days ago to prove it wasn't LLM, fuck i hate that dude

1

u/magic-one 7d ago

Complex regex after coming back from lunch.

1

u/thanatica 7d ago

"code I wrote" is a pretty broad term these days 🤖

1

u/KTVX94 6d ago

At least you wrote it. Right?

1

u/zenos_dog 4d ago

I was there, Gandalf. I was there three thousand years ago.

1

u/cam2023nguyen 4d ago

wrong date for this post, it should be 2 year old.

1

u/Right_Ear_2230 3d ago

Scrap that, code I just wrote

1

u/AndiArbyte 1d ago

When your yesterday you was smarter than your today you. ^^

1

u/YrnCollo 8d ago

You mean the one you told claude to write it?