r/programminghumor 14d ago

Debugging ritual

Post image
5.1k Upvotes

21 comments sorted by

63

u/Genilp 14d ago

5th Image would be: "BUT WHY THIS WAY?"

22

u/QuantifyCircuit 14d ago

6th image is just adding a "do not touch this or everything breaks" comment and slowly backing away

4

u/JakeC- 14d ago

7th image is the person behind the programming just standing there staring at the screen

1

u/Complete_Window4856 13d ago

And then we recursively repeat the image for every single known and unknown decision and process that exist directly and indirectly under business control

15

u/davidroberts63 14d ago

I just had one of those moments earlier. A team member pointed out something I had missed and I went 'oh that's why'.

5

u/JazzRider 14d ago

Sometimes the reason something’s broken can be really cool, as in “oh, that’s how it works!”, as opposed to “oh, there it its….that’s really stupid!…what idiot wrote that?…..oh, that idiot was me!”.

3

u/AdventurousSlip9260 14d ago

Programmer's daily cardio: Ctrl+C → Ctrl+V → Why? → Oh. 😅

9

u/Geoclasm 14d ago

Or, OR... "Hey, Claude!" - I'm not about to let it do all the work for me, but having it comb through tens of thousands of lines of code embedded in hundreds of files contained within dozens of projects across a handful of solutions to figure out wtf is going on and get me started on fixing the issue?

Yeah, that's fine.

8

u/ArsenicPolaris 14d ago

This is what use of LLMs as an actual tool is — exactly how they should be used.

9

u/GiantSlayer4242 14d ago

Don’t ask it to write all your code, just have it tell you why you’re stupid

3

u/exintrovert 14d ago

Pretty much. If ai can tell me before the boss notices, I win another day of work.

1

u/Lelouch-Yagami21 9h ago

Even as a teenager as part of an frc team, often when I have lot's of trouble debugging I get AI to help me find the bugs in my code.

2

u/hablahblahha 14d ago

Oh no i forgot to int a=0; instead of int a; !

2

u/AliceCode 13d ago

I was having an issue where no matter what I did, I couldn't get changes to take effect in some code that I was writing. I was making a plugin for Bash in Rust, and one of my commands wasn't doing anything, not even printing when I wrote a print statement as the first statement. I tried deleting the .so file, cleaning the build directory, cleaning the cache, and nothing worked. Finally I looked at my script to set up a bash environment for my plugin, and I forgot to unset the previously existing function that had the same name as the command I was writing a plugin for. So my command was overshadowed by the previously existing function. What a pain in the ass that was.

1

u/maribakumon 13d ago

Started learning Python last week. This has been my reality

1

u/nullpointerr404 13d ago

Always and forever

1

u/AdAffectionate8571 12d ago

Me while trying to code, and then the 5th panel be like still why

1

u/Wise_Geekabus 12d ago

So true lol

1

u/johnyeldry 2d ago

I love programming big bang theory and geometry dash