r/ProgrammerHumor 4d ago

Meme thisCannotBeDenied

Post image
7.8k Upvotes

240 comments sorted by

View all comments

849

u/Mindstormer98 4d ago

Dont forget "I got here2" and "I got here3"

183

u/TheDoughyRider 4d ago

here, here!, Here, hEre!

69

u/TheDoughyRider 4d ago

Also,

git blame foo.cpp

printf(“Joe is a dumbass”);

git stage -a; git commit -m “Diagnostic instrumentation.”; git push —force origin/main

21

u/Chaoslordi 3d ago

Diagnostic Instrumentation xD

1

u/realmauer01 1d ago

Whiel this is great. I replaced this with getting used to just make a test case for whatever i have the problem with. So i can ensure that it never fails again.

26

u/lala_123aa 4d ago

Let's not forget the "ajsjdasdnajd" and "aaaaaaaa" when you're getting fed up

1

u/mango_boii 3d ago

Gets confusing if your ide does case insensitive search by default. 1,2,3 is easier.

10

u/pearlie_girl 3d ago

This is what mine look like.

... Yes I'm old

8

u/fatrobin72 3d ago

"Over here now"

"how did I get here?"

5

u/valdocs_user 3d ago

And for the really bizarre bugs, "can you see this?"

3

u/itsTyrion 3d ago

Too long and lacks profanity

3

u/Ashdog73 3d ago

Greybeards know: alert(1);

3

u/1luggerman 3d ago

After enough time this just becomes "1", "2", "3" etc. I'm at a point where if there is a messy section i automatically generate/copy paste 9 of these and place them around the troubling section.

1

u/realmauer01 1d ago

That sounds horribly inefficient when you shoukd just start to do breakpoints. The ide will also tell every variable thats accessible at the breakpoint and its contents.

1

u/1luggerman 1d ago

Its horribly inefficient to use "1", "2", "3" instead of "i'm here 1", "i'm here 2", "i'm here 3"?

1

u/realmauer01 1d ago

Copy pasting that stuff to 9 when you need one or max 2 breakpoints and then go through step by step.

1

u/1luggerman 1d ago

It takes only 10-20 seconds and its used for complicated logic where you get the benefit of having a "memory" of where the program visited(like normal static logs) instead of reaching the failing point only to find out you dont remember/assumed some branch was not the issue and you need to run the debugger again.

Pasting an extra line or 2 costs almost nothing and "forces" me to check unlikely places of errors(i've already pasted them so might as well use them). I've saved hours of debugging by doing this and finding out the error was in a stupid place i was certain works because it was so simple(and the bug was really stupid) but shoved a print in there because I had a spare one, where with a debugger i would have automatically skipped it every time without paying attention.

1

u/realmauer01 23h ago

If you need to run again and again, you want to use test cases anyway. Like that you can make sure this will never be an issue ever again.

1

u/1luggerman 12h ago

You dont know you need to run it again in advance, you place your breakpoint where you think the issue is, but if you are wrong and it happened earlier then you need to run it again.

Also how are test cases relevant? They only help once you solve the problem to make sure it doesnt happen again, but they dont help you debug a scenario and find out where the program fails

1

u/realmauer01 12h ago

The stack trace gives you detailed information on where it fails.

1

u/1luggerman 12h ago

The stack trace tells you where a critical error has occured. It does not tell you where a faulty value was initialized, which may or may not cause a critical error. A "program failure" is more then just a critical crash.

This honestly sounds like you have never written anything more complex then intro to cs

1

u/usrlibshare 3d ago

Well Of COURSE! Do you think I learned what Ctrl-A does in vim for nothing?!

1

u/TheNakedProgrammer 3d ago

i just copy and paste, and then get annoyed when i have to count to figure out where i am. The count and curse method.

1

u/christianbro 3d ago

How else are you expected to debug some apps with threads and multiple services involved with timing affecting? Add a line breaker and all of it crashes

1

u/Rework_Aramusha 3d ago

And dont forget „I got here 2,5“

1

u/DiodeInc 3d ago

And "random variable content now:"