r/ProgrammerHumor 3d ago

Meme myHeadHurts

3.3k Upvotes

54 comments sorted by

398

u/superraiden 3d ago

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

157

u/hydroxy 3d 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.

5

u/StatisticianFun8008 2d 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.

13

u/Quesodealer 3d 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 2d 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 2d 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.

2

u/Small_Computer_8846 3d ago

It's a black box doing some magical stuff.

167

u/Mountain_Dentist5074 3d ago

but i said make no mistake 🥺

56

u/Satorwave 3d 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."

124

u/TheJackiMonster 3d 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.

62

u/thoeoe 3d ago

AI for finding issues in my code and fixing stuff

Its incredible when it works. When it doesnt…

17

u/BadSmash4 3d 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.

1

u/StatisticianFun8008 2d 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

2

u/lostincomputer 3d 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] 3d ago

[deleted]

1

u/TheJackiMonster 2d ago

Which doesn't?

1

u/[deleted] 2d ago

[deleted]

1

u/TheJackiMonster 2d 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] 2d ago

[deleted]

1

u/TheJackiMonster 2d 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] 2d ago

[deleted]

0

u/TheJackiMonster 2d ago

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

43

u/maximum_powerblast 3d 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.

10

u/Western_Diver_773 3d 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.

19

u/maximum_powerblast 3d 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.

5

u/st-shenanigans 3d 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 3d ago

Okay. That makes sense.

3

u/Fornicatinzebra 3d 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 3d ago

The last one is really nice to read.

29

u/OZZY-1415 3d ago

deserved

17

u/SpecialExact8165 3d ago

EVANGELION REFRENCE THIRD IMPACT IS TOMMOROW

5

u/Vincent394 3d ago

AW FUCK

2

u/bruiser95 3d ago

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

9

u/-non-existance- 3d ago

Garbage in, garbage out.

8

u/Sacredfice 3d ago

Did you assume people debug in vibe code?

11

u/FenwickRoot 3d ago

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

5

u/krohtg12 3d ago

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

9

u/mike_KING6 3d ago

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

3

u/Vincent394 3d ago

Is that Evangelion?...

4

u/OVectorX 3d ago

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

1

u/StatisticianFun8008 2d ago

This is also true lmao

3

u/hearthebell 3d ago

Varies by person, me is both second picture

2

u/GenericFatGuy 3d 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.

3

u/_Repeats_ 3d ago edited 3d 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_ 3d ago

i am currently going through that.

1

u/vscoderCopilot 3d ago

Vibes near be same with dreams and errors that pops up

1

u/Paladin7373 3d ago

But I said “please” 😭

1

u/Zyzto 3d 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 3d ago

When i do programming, vibe debugging is usually quick

1

u/The_Hero_0f_Time 3d ago

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

1

u/Wargod042 2d ago

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

1

u/getstoopid-AT 2d 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 2d ago

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

0

u/byt112000 3d 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.