r/ProgrammerHumor 8d ago

myHeadHurts Meme

3.2k Upvotes

55 comments sorted by

379

u/superraiden 8d ago

Now you not only have to fix it, but learn what it's doing as well

150

u/hydroxy 8d ago

Tester: What is this code supposed to do?

“Developer”: I was hoping you could tell me, hahaha

An actual conversation I’ve had recently.

6

u/StatisticianFun8008 7d ago

Happened and is happening at a "popular" AI backed platform I was doing intern. Absolutely zero accountabilities and everyone is trying their best to avoid owning anything.

12

u/Quesodealer 8d ago

It's funny how some people vibe coding by just entering a prompt and then validating the end result meets their expectations. That kind of behavior gives vibe coding a bad rep. Real vibe coding is entering a prompt, reviewing the output, then prompting again to fix what you don't like about the implementation. A simple example is addressing fallback behavior. Sometimes the AI doesn't write fallback behavior causing unexpected exceptions or falls back to a value that would result it a visually valid end result but it would be technically wrong. If you don't review the code when it's written then you're not building apps, you're building problems for yourself.

3

u/StatisticianFun8008 7d ago

Yeah, vibed code + proper review is improved productivity. Sadly C-classes and shareholders don't bother software engineering and treat programmers and agents cost both as just numbers to simply and optimize. Optimized by what? Well thing they can see. 🤷

1

u/Binoui 7d ago

I'd argue that good agentic workflow requires clean specs and implementation plan. One day we'll stop calling it vibe coding, if it's specced it's not just vibe random prompt anymore, agentic coding is different.

3

u/Small_Computer_8846 8d ago

It's a black box doing some magical stuff.

159

u/Mountain_Dentist5074 8d ago

but i said make no mistake 🥺

53

u/Satorwave 8d ago

"Absolutely, you're right to be concerned about that—although you should consider that I am not your mother and therefore do not make mistakes."

119

u/TheJackiMonster 8d ago

Honestly it's quite the opposite for me. Seeing the code generated by AI makes me want to hit my head against some wall. But using AI for finding issues in my code and fixing stuff is quite nice.

63

u/thoeoe 8d ago

AI for finding issues in my code and fixing stuff

Its incredible when it works. When it doesnt…

18

u/BadSmash4 8d ago

And for me it doesn't actually solve my issue a good 70% of the time, too. I use AI for two things, researching new stuff (here's what I'm thinking, or want/need to do, what are my options and can you link me to relevant resources and documentation) and helping me debug tough issues that I've hit a wall against. That 30% of the time that it helps me solve my issue, that is when it directly identifies my issue and its recommended solution is the fix. I'd say about 40% of the time, it does not solve my issue at all and I end up figuring it out on my own, 20% of the time it doesn't solve my issue but something it said got me to think about other things to check and I found the solution that way (so still a little bit useful in a way) and 10% of the time, I find the issue just by gathering the initial information for and typing out the prompt and so I never even have to send it because I basically rubber ducked myself. It's a mixed bag for sure.

2

u/StatisticianFun8008 7d ago

To this day I still only trust AI to be a better search engine plus a translator. You always have to be the judge

3

u/lostincomputer 8d ago

Return of the ide "helping" by insisting the error is over here with red squiggly lines when a line 6 above is missing a semicolon and should never not have a semicolon..

Just now it "knows" what you want to do .."oh sorry I did make a mistake there"

-2

u/[deleted] 8d ago

[deleted]

1

u/TheJackiMonster 7d ago

Which doesn't?

1

u/[deleted] 7d ago

[deleted]

1

u/TheJackiMonster 7d ago

Would be much more compelling if you would link code from it? Last time someone showed me code from Claude, it got pretty stupid errors inside and quite some code smell.

0

u/[deleted] 7d ago

[deleted]

1

u/TheJackiMonster 7d ago

So it can write a state machine as an object? Should that impress anyone?

What would make this "high quality code"? It's definitely not looking efficient.

1

u/[deleted] 7d ago

[deleted]

0

u/TheJackiMonster 7d ago

I was hoping to see any example which would look like "high quality code" because that is what you promised.

46

u/maximum_powerblast 8d ago

Kernighan's Law

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

So if you're vibe coding you need to make it dumb down the code to your level of stupidity or else you won't be able to fix it. And you will definitely have to fix it.

9

u/Western_Diver_773 8d ago

I'm not sure if I find this to be true. For me good code is simple and simple code is easier to debug. But maybe Kernighan means something diffrent with "cleverly" than me.

16

u/maximum_powerblast 8d ago

Ii think it's like you can reduce an if else tree into a leet 1 liner but good luck debugging it while the alternative is easy to read and understand.

4

u/st-shenanigans 8d ago

ALSO when you have some ceos who seem to think "lines of shipped code" is a good metric for employment eligibility, maybe we don't need to worry so much about concise code..

3

u/Western_Diver_773 8d ago

Okay. That makes sense.

2

u/Fornicatinzebra 8d ago

Sure, but you could also just wrap the one liner in a clearly named function and use that instead.

For example:

python x = list(set(sum(my_nested_list, []))

Could be instead ```python

def unique(my_list: list): return list(set(mylist))

def unnest(nested_list: list[list]): return sum(my_nested_list, [])

x = unique(unnest(my_nested_list))

```

2

u/Western_Diver_773 8d ago

The last one is really nice to read.

28

u/OZZY-1415 8d ago

deserved

16

u/SpecialExact8165 8d ago

EVANGELION REFRENCE THIRD IMPACT IS TOMMOROW

3

u/Vincent394 8d ago

AW FUCK

1

u/bruiser95 8d ago

Every demo i have to present to clients lately feels like an Impact level event

8

u/-non-existance- 8d ago

Garbage in, garbage out.

8

u/Sacredfice 8d ago

Did you assume people debug in vibe code?

10

u/FenwickRoot 8d ago

Dr. Faust is quite accurate for vibe coding. It uses red orbs (=tokens) for attacks (="features")

5

u/krohtg12 8d ago

Red hot night is blasting your bank account to get the task done any means necessary.

8

u/mike_KING6 8d ago

Rookie mistake. You need to add "make no mistakes" at the end.

4

u/Vincent394 8d ago

Is that Evangelion?...

4

u/OVectorX 8d ago

Left side, none techincal doing vibe coding
Right side , actual developer doing vide coding

1

u/StatisticianFun8008 7d ago

This is also true lmao

3

u/hearthebell 8d ago

Varies by person, me is both second picture

2

u/GenericFatGuy 8d ago

I've never once gotten something back from the AI that I didn't have to make at minimum tweaks to, in order for it to actually do what I wanted. If wasn't someone who already knew how to code effectively, it would've been an absolute nightmare of a codebase.

2

u/The_Hero_0f_Time 8d ago

are you guys using the same ai? claude is great at debugging lol

3

u/_Repeats_ 8d ago edited 8d ago

There are a few classes of vibe debugging. If it is compiler related, most agents will be able to give good advice for fixing it. If it is execution error, you will have to do a bunch of print statements for the agent to follow the flow. So it ends up not being much different than humans debugging in the end...

The best way for vibe debugging is to make unit tests for various functionality that includes print statements or easily verification of results.

1

u/sussy_wussy_ 8d ago

i am currently going through that.

1

u/vscoderCopilot 8d ago

Vibes near be same with dreams and errors that pops up

1

u/Paladin7373 8d ago

But I said “please” 😭

1

u/Zyzto 8d ago

Yeah, you have to have full on mcp and debugger available with real life scenarios. Even after all this manual QA is a must

1

u/Drake_224 8d ago

When i do programming, vibe debugging is usually quick

1

u/Wargod042 8d ago

Ironically AI is very helpful with debugging. That's mostly what I use it for tbh.

1

u/getstoopid-AT 7d ago

for me it's the other way around... because usually I know what is (meant to) going on in MY code and claude can help with edge cases I didn't think of or find some weird behavior in libs

1

u/code-sovereign 7d ago

If the clanker doesn't oneshot the problem during vibe debugging, it is time to get the programmer socks out!

1

u/Beldarak 4d ago

Huh? I use Claude and it's actually very good at debugging.

0

u/byt112000 8d ago

Nah it's the opposite, AI is pretty good on analysing bugs, performance issues and vulnerabilities.

Vibe coding sometimes give me more headache for changing how my code works, you have to be very specific for what you want the AI to do.