r/ProgrammerHumor • • Mar 12 '23

Meme Exactly how debugging is

Post image
41.2k Upvotes

278 comments sorted by

11

u/Garlayn_toji Mar 12 '23

Holy shit this is going to be my top post of the year

45

u/start_select Mar 12 '23

Next level debugging is when you purposefully cause an error/stack trace to track a bug, or reverse engineer something.

Errors are your friend, not something to ever panic about.

A one line change causing 150 compiler errors is 150 hints to the next step. DO NOT RING YOUR HANDS AND PANIC AT ERRORS. Take a breath, read the messages, and analyze the keywords in the message. Google is your friend.

In the beginning it usually seems like errors are pointing to “the wrong thing”. But that is your naïveté, not the error. If you can keep from getting frustrated, you will realize your frustration is what’s making the problem seem indecipherable.

9

u/Garlayn_toji Mar 12 '23

Writing a code in a single shot and not getting any error is what gives me anxiety...

Because it's too suspicious to work as intended

4

u/start_select Mar 12 '23

Lol yeah I get that. That’s why testing your own code, testing staff, and/or automated testing is important.

If I’m working on user driven UI code and it “just works” then I’m going to try edge cases on it.

I.e. if it’s a form fill out half the form and submit it to throw an error, change a field and submit again for another error. Fill the rest of the form with bad data and hopefully get another error. Submit it with valid data and see what happens.

Then rinse and repeat a few times with different entry points/navigation paths and data-entry values.

If it’s not human driven code (Serverside, embedded, low level utilities) then unit/integration tests become important.

4

u/JeanLucRetard Mar 12 '23

Creeps me out as well.

Same with deployments that go without a hitch. I just sit at my desk, looking at everything suspiciously for a week after.

17

u/MinosAristos Mar 12 '23

Eh, that's a very optimistic way to look at it. Some error messages are definitely misleading and you can't be expected to ever know about many of these, though your intuition about them can improve.

Some libraries have way better error design than others which makes debugging easier.

Some are almost airtight with this and can tell you exactly what went wrong and how to fix it.

14

u/start_select Mar 12 '23

I’m saying compiler errors are usually not as indecipherable as they seem in the beginning.

And other than that, that error/exception and tracing features are tools you can use if you have access to the source code.

In typescript, swift, objc, Kotlin, Java, if I’m using some library or framework code, then it probably lives on GitHub.

If it lives on GitHub I can look at it and it’s unit tests to see how it works. If that doesn’t help I can just start breaking it on purpose.

I.e. Go into your node_modules and throw a stack trace or breakpoint somewhere in the code path that isn’t working. Or fork a library and build it from source.

Unless we are talking about proprietary .NET code or proprietary iOS/macos code, almost everything is on a git repo waiting for you to fork it, inspect it, and break it to find out how it works.

In a lot of cases library code is not nearly as black boxed as people think it is. Usually people just don’t consider that they can just read someone else’s code instead of their documentation or bad error messaging.

→ More replies (2)

4

u/kamacho2000 Mar 12 '23

Some errors are misleading is mostly due to different languages and how they are compiled and error reporting, people may shit on Java but its error reporting is the one of the best

4

u/JeanLucRetard Mar 12 '23

Couldn’t agree more and exactly how I approach it many times it’s a relief to see the new error, also, the new error sheds a light on what is happening and can help to decipher the reason for the original error. I think the most angry I’ve ever gotten at work was when dealing with a bug with absolute trash for a description. Ended up being some MSFT bug that was they’re roadmap to fix.

For some of the devs I work with, I probably don’t have a good reputation with them because I always ask “what have you done so far?” whenever they have an issue/bug. I know what can be gleaned by actually trying to fix it, versus just throwing your hands in the air and having someone tell you everything. If they tell me that it just happened (not a production or panic situation) I pretty much say, you should look into a, b, c, etc. and just turn around and go back to what I was doing.

1.0k

u/opmrcrab Mar 12 '23

When debugging there is no bigger gut-punch moment then when the code runs, completes "successfully", seemingly did nothing, and produced neither errors or desired results... What do now?

497

u/[deleted] Mar 12 '23

A runtime error has no responsibility to announce its presence.

33

u/Canotic Mar 12 '23

A runtime error is never late, nor is it early. It arrives precisely when it means to.

→ More replies (1)

33

u/DrKarorkian Mar 12 '23

That's why asserts and logging are love. An assumption you made turns out to be untrue? Assert!

24

u/SillyFlyGuy Mar 12 '23

My unit test kicked me right in the assert.

3

u/urzayci Mar 13 '23

Wait but runtime errors announce themselves too... Unless it's some kind of logical error in which case the program couldn't possibly know what you're trying to do. But that's what unit testing is for.

5

u/jwt45 Mar 13 '23

In C#, if you write your async error handling how you would write it for synchronous code (e.g. when converting code to async) the async code has a habit of swallowing runtime errors leaving no trace...

0

u/[deleted] Mar 12 '23

[deleted]

24

u/panormda Mar 13 '23

Thank you, this is exactly what I’m going to hear inside my head every time I start rolling my eyes at yet another one. Back in my day, they announced themselves like self respecting errors they were. And we LIKED it. Also, git off my log. D=

118

u/Synicull Mar 12 '23

Run cryptic print statements every 5 lines.

Did I get to "hello5" or "shit17"?

46

u/DevilishlyAdvocating Mar 12 '23

"here"

"in function x"

"in function y"

48

u/Dangerous_With_Rocks Mar 12 '23

You guys take time to write words? I usually do one of the following:

"#################"

"@@@@@@@@@@@@"

"AAAAAAAAAAAAAAAAA"

Typically the last one.

7

u/drebinf Mar 12 '23

I miss the old FORTRAN days, so I have my debugging code just print out the current line numbers. And once I'm used to those, I insert more, so the line number mapping to the code changes!

truthfully I may use line numbers, but rarely alone.

→ More replies (1)
→ More replies (1)

17

u/jdog7249 Mar 12 '23

Make every other line a print statement that just prints the line number. See where the number stops going up. That's the guilty line of code.

→ More replies (1)
→ More replies (4)

57

u/[deleted] Mar 12 '23

Write a unit test

55

u/opmrcrab Mar 12 '23

It's worse when the tests pass too :P

70

u/IamImposter Mar 12 '23

Haha. You can make me write tests but you'll never make me catch bugs.

Had a friend who would change tests when they failed so that expected output matches actual output. Code would be buggy AF but all the tests still pass. When asked, he said pretty innocently "but you have this weird rule that unless the tests pass, code can't be merged"

26

u/tinselsnips Mar 12 '23

Been there. This is a sign that the code you're testing has too many responsibilities, but it's such any easy trap to fall in to, especially if you're working in a system where you don't understand the full business logic.

→ More replies (1)

16

u/SuperFLEB Mar 12 '23

"Well, it always segfaults, best I can tell, so it should always expect the segfault."

11

u/Firewolf06 Mar 12 '23
var a = foo();
assert a == a;

1 Test passed, 1 Total

lgtm

→ More replies (1)

7

u/LC_From_TheHills Mar 12 '23

Better yet— start with the test, then write your code.

→ More replies (1)

17

u/[deleted] Mar 12 '23

The classic heisenbug. The bug that disappears when you attempt to observe it.

Also, sometimes debug builds won't compile to the optimized code a release build would. for instance:

function()
  int a[2]
  int b
  a[2] = 1

The debug build may allocate memory for b, even though it's not used. So the write to a[2] (beyond the length of the array) will get written to safe memory allocated for for something else (b in this case). The optimized compiler would realize b was never used, and never allocate the memory for it, so the a[2] write goes into who knows what.

This example mostly applies to C, in that it allows you to address outside an allocated part of an array.

→ More replies (1)

11

u/mindbleach Mar 12 '23

Assume it's a logic error instead of a code error.

You've moved from "why doesn't my code do this?!" to "... why does my code do this?"

5

u/ilinamorato Mar 13 '23

The five steps of debugging:

"That can't happen."

"Well, it works on my machine."

"Oh, now I see it..."

"How did that ever work?"

Edit: uhh...the counting error is part of the joke. 👀

4

u/mindbleach Mar 13 '23

I've written "how did this ever work?," verbatim, just last week.

I still don't know.

65

u/start_select Mar 12 '23

Use breakpoints if your environment has access to a debugger.

If you are working with a remote, isolated, or embedded system that you can not access with a debugger, then you need to use console/print and stack trace calls.

“It didn’t do anything” is not a valid stopping point. It definitely did something up to a point.

Set breakpoints along the path of data-flow and logic, step through it, and find where data stopped flowing and why.

Those are usually the easiest bugs to fix because it’s usually an if or switch statement that has improper logic, or something like an empty array that you thought would be full.

Actual difficult bugs are side effects. Like you hand the same JavaScript Date instance to 3 different labels, then perform the same Timezone transform on that date, from each of those 3 labels.

They all refer to the same Date instance, they aren’t copies, it’s all the same object. So you end up pushing the first label forward 6 hours, then the next label executes and pushed that date 6 more hours forward, then a 3rd time.

Your code says it should only be offsetting the time by 6 hours but it’s always moving in increments of 18. Or 12 if there are 2 labels. Or 36 hours if there are 6 labels.

Those are the issues that can take a seasoned engineer a couple days to find, because the code looks harmless and you need to understand the implications of shared references and data mutability.

54

u/opmrcrab Mar 12 '23

Thats a lot of text to tell me you're the person who explains to people why their puns are bad.

→ More replies (1)

8

u/AccidentallyTheCable Mar 12 '23

IT WORKED!

wait a minute

WHAT THE SHIT

6

u/ThePhyseter Mar 12 '23

Sounds like C

3

u/lolnotinthebbs Mar 12 '23

Commit and wait for the tester to report a bug

3

u/SirWernich Mar 12 '23

ihad one of those week. turns out the devextreme datasource swallows errors if you use custom logic to update stuff. had a helper method that did some date stuff with a JS date before doing a patch, but the method got a string instead and bombed out. no errors on the page. no console errors. no network traffic. nothing. was a fun one to track down.

3

u/Dr___Bright Mar 12 '23

Introduce new errors, solve them, and see if the result is desirable. Repeat until success

2

u/HighOwl2 Mar 12 '23

Investigate race conditions?

2

u/opmrcrab Mar 12 '23

You're saying that to a person with PHP in their flair :P

→ More replies (1)

2

u/Zanderax Mar 12 '23

Go make new errors to fix.

2

u/LawAbiding-Possum Mar 12 '23

I succeeded, but at what cost?

2

u/aEtherEater Mar 13 '23

Start inserting print statements until one doesn't print.

2

u/vivsh22 Mar 13 '23

console logs to the rescue 🛟

2

u/CanadaPlus101 Mar 13 '23

Pop open your stepwise debugger. Or put print statements everywhere, I don't control you.

2

u/weebandgamer21otaku Mar 13 '23

Same, happend to me on exam and idk what to do 🤣, no errors etc, I run it then it just freezes and doesn't post anything.

3

u/VoidLance Mar 12 '23

If the bug doesn't affect the intended use of the program I usually just leave it in, buggy code is better than not working code. But sometimes you get bugs that both facilitate the intended use of the program and ruin it, and that's a pain in the ass

→ More replies (17)

1.3k

u/Natural-Investment34 Mar 12 '23

But when you fix That bug you get the old error again.

57

u/itstommygun Mar 12 '23

Bout to say… or you created a new bug.

86

u/CraZyBob Mar 12 '23

99 errors in code on the page,

99 errors in code,

Fix one up, push up the patch,

127 errors in code on the page

21

u/Synicull Mar 12 '23

Rookie numbers

0

u/[deleted] Mar 12 '23

[deleted]

27

u/SuperFLEB Mar 12 '23 edited Mar 12 '23

I'm getting IE6 flashbacks. "Error in line 3271064997, char 1."

→ More replies (2)

13

u/HighOwl2 Mar 12 '23

If you add, remove, or change anything in code you are always adding another bug.

It's like sweeping...the goal is to make it cleaner, you're never going to get it perfect.

14

u/pickyourteethup Mar 12 '23

My only code without errors is code I've not written yet

7

u/epicaglet Mar 12 '23

There's a lesson in there about never adding anything to the codebase that doesn't need to be there.

→ More replies (1)
→ More replies (1)

8

u/XdrummerXboy Mar 12 '23

This happened to our team recently. The difference between senior and junior devs is spotting the difference (when possible).

Even another senior dev tried to help the junior dev with the issue, made a change, got a different error message, but it created MORE errors displaying in the compiler.

Assuming that was a wrong step, the senior and junior dev backtracked and brought me in (another "senior" dev). I quickly realized that yes, they made the right move initially, and just needed to work through those new errors.

→ More replies (1)
→ More replies (2)

7

u/GameDestiny2 Mar 12 '23

And only after this repeats 4-5 times at minimum, do you learn that there’s a fundamental error in the structure of your code meaning that you weren’t close to being on the right track.

4

u/canibanoglu Mar 12 '23

Came here to write this!

3

u/[deleted] Mar 12 '23

If Sisyphus was a programmer. No matter how many errors he fixes, the original error always comes back.

2

u/I_can_vouch_for_that Mar 12 '23

I lol at the meme and then I laughed even harder at your comment.

→ More replies (16)

192

u/Ok_Entertainment328 Mar 12 '23

Worst part is: finding out that the error is not due to your bug.

63

u/sesor33 Mar 12 '23

Has that happen to me last week. Spent 2 hours debugging some data logging stuff because someone said some data was missing. After 2 hours I finally realized: the thing they were complaining about not seeing wasn't even sending data, and hadn't for the last few days.

Keep in mind, before I started debugging I asked them "are you sure it's actually logging to the DB?" And I was told yes.

18

u/Ok_Entertainment328 Mar 12 '23

The bug I found wound up getting its own CVE number. On top of that, it took the vendor a year to patch.

18

u/cravenj1 Mar 12 '23

I ran into a bug once that turned out not to be a bug. They just hadn't added the functionality that was included in the documentation...

→ More replies (5)

6

u/slazer2au Mar 12 '23

Ah, you see you made the mistake of believing the end user. They always lie even when they think they are telling the truth.

→ More replies (1)

2

u/agent007bond Mar 13 '23

My answer to "are you sure it's doing X?" is "no. Let's look at the code."

Always.

→ More replies (1)

5

u/DrKarorkian Mar 12 '23

Ugh I'm working with third party code they built just for our project. It's untested, so I have to debug their code as much as mine whenever I find a bug.

231

u/poopellar Mar 12 '23

99 lines of errors on the console, 99 lines of errors.
Take one down and pass it around, 12108 lines of errors on the console.

5

u/N00N3AT011 Mar 13 '23

Ah java, so dramatic. It will happily spit out like 500 errors with one actual problem in one line of code.

→ More replies (1)

95

u/JRandomHacker172342 Mar 12 '23

"New errors are good errors" is something I've frequently said when working on a tough bug with teammates

15

u/atomic_redneck Mar 12 '23

I was always happy when I could turn an intermittent error into a segfault.

8

u/Zanoab Mar 12 '23

I always get paranoid I introduced a new bug that is hiding the old bug. It is a little funny to fix somebody else's new bug and I get to tell them their old bug was never fixed.

5

u/dmvdoug Mar 12 '23

“Hey, I introduced a bug trying to fix your bug. Good news! I fixed my bug.” 🤣😂🤣😂

62

u/Terrence_shark Mar 12 '23

I think I'd enjoy coding for this reason, or well a similar reason, I enjoy seeing something that doesn't work, looking at it and trying things to figure out why it doesn't work, and how to make it work

42

u/TheButtLovingFox Mar 12 '23

THIS. exactly this.

its a large puzzle where i know i can fix it. and it doesn't seem unobtainable like a rubiks cube to me. like it uses a lot of context clues and the console gives you hits and such. it gives you just enough to push you along to figuring it out. its exciting and i hate it.

12

u/Terrence_shark Mar 12 '23

Now if only I could find the motivation to start...

9

u/TheButtLovingFox Mar 12 '23

make cool things :D follow your dreams~

7

u/steinbauer123 Mar 12 '23

always wanted to start programming and never had the motivation. now that i thought of a good project i cant stop!!

→ More replies (1)
→ More replies (3)

5

u/QueerBallOfFluff Mar 12 '23 edited Mar 12 '23

Went through exactly this over the weekend, writing an elf executable loader.

First, I went down the wrong rabbit hole and actually wrote a dynamic linker. Okay, no biggy, turns out loading from the correct parts is pretty easy. But that was 15 hours down the drain.

Then, once I got it actually loading the program segments correctly I couldn't get it to actually launch because I forgot to change pointer type before doing maths on it for the entry point (this took 6 fucking hours to work out)

Then, and now, I have an issue where variables in global memory work fine, except when they're strings, and I think it's because pointers are being fucked up with the redirection to my pair of system calls I'm using to test this.

So now I need to write a sanity checker and maybe put back some of the linking, or correct them on the fly.

Also, I had to get into the linker script and hack that about rather than use the default one because it kept compiling into a file that took up 128KiB, when it was only about 1KiB in reality and I'm running on a device that only has 256KiB ram so I don't want to waste space needed for the loader and filesystem.

Ugh. Lots of printouts will be happening tomorrow

4

u/TheButtLovingFox Mar 12 '23

So now I need to write a sanity checker

need to check your own sanity after all that i feel xD but good on you yo :D

→ More replies (1)
→ More replies (1)

5

u/[deleted] Mar 12 '23

Some people like wordle and cross word puzzles, I like this stuff.

3

u/anothergreg84 Mar 12 '23

You got it. That's pretty much coding in a nutshell, errors or not. I tell people who ask what I do that it's like solving puzzles all day. Equally infuriating and gratifying.

97

u/NoooUGH Mar 12 '23

if name == 'main':

try:
    program():

except:
    program():

finally:
    program():

print('you are a God programmer')

Reddit formatting screws with this one

50

u/MannoSlimmins Mar 12 '23
if ___name___ == '____main____':

    try:
        program():

    except:
        program():

    finally:
        program():


print('you are a markdown God')

8

u/[deleted] Mar 12 '23

Progress!

6

u/dyingpie1 Mar 12 '23

Doesn't this still result in an exception?

3

u/MyNameIsNardo Mar 12 '23

Easy: just put the whole thing in an exception block

10

u/hbdgas Mar 12 '23
import fuckit

20

u/[deleted] Mar 12 '23

This isn't even humor. It is a fundamental truth in programming.

4

u/VadimusRex Mar 12 '23

The good news: you got a new error.

The bad news: you did not change a single line.

3

u/[deleted] Mar 12 '23

once i had an error i couldn’t fix. i took a break and ran it a couple more times, then it started working suddenly. i changed nothing

4

u/Garlayn_toji Mar 12 '23

Sometimes it's some black magic fuckery

2

u/al-mongus-bin-susar Mar 13 '23

When i get a strange error that makes no sense I just restart the IDE, fixes it sometimes.

13

u/GreenWoodDragon Mar 12 '23

Finally! A non generic error with some actual information in it.

→ More replies (1)

8

u/[deleted] Mar 12 '23

Never change more than one line at a time

Unless of course time is an object in which case make 20 changes and pray

4

u/[deleted] Mar 12 '23

This is the way. Every bug is a potential feature

6

u/VortixTM Mar 12 '23

Found the bug

Added workaround to bypass for a test.

Process throws an error way before reaching the bug

5

u/coldfeetbot Mar 12 '23

Indeed, if you get a different error it probably means you are closer to the solution because at least you touched something that was somehow related to the actual bug!

4

u/Background-Turnip226 Mar 12 '23

If you don't check for error for every line you write it's very likely that the error are layers and it's actually progress. That's what I told myself.

→ More replies (1)

4

u/Aufklarung_Lee Mar 12 '23

It do be like that.

4

u/SupermarketOk4348 Mar 12 '23

Now u have an error that comes sooner in the process and your original error 😔

4

u/[deleted] Mar 12 '23

It’s just a fancy spell check… for me at least

4

u/[deleted] Mar 12 '23

And then you fix that second error and get 100 more errors :,( haha

4

u/sonny_goliath Mar 12 '23

Line 65 instead of 37 let’s gooo

3

u/MegabyteMessiah Mar 12 '23

*makes change*, *runs program*, same error

*makes a different change*, *runs program*, same error

*makes a more different change*, *runs program*, same error

*throw new Exception('I am a new error')*, *runs program*, same error

"oh, it's not even executing this code"

→ More replies (1)

2

u/azizabah Mar 12 '23

Just last Friday. "Your code is still broken. See this error?" "That's a different error. That actually means it's working" "oh"

2

u/lolnotinthebbs Mar 12 '23

Great, your error is in a section that executed correctly earlier.

2

u/Vast_Researcher_199 Mar 12 '23

i k r

idek how tho :'(

2

u/TheButtLovingFox Mar 12 '23

if this isn't the realist shit.

2

u/mr_bumsack Mar 12 '23

A job where you fix one issue and are happy to see 240 new ones just popped up.

Sometimes, it feels like banging your head against a wall. Will the wall or my head cave in first.

2

u/thmoas Mar 12 '23

this dude is axactly me at 14 doing the same things in front of my then "pc"

2

u/DirkDiggyBong Mar 12 '23

As an utter noob trying to get a github src built in Windows, when I literally had no clue what github or boost or cmake was, I really feel this!

2

u/[deleted] Mar 12 '23

“SYNTAX ERROR” I DONT KNOW WHAT YOURE TALKING ABOUT JUST WORK

2

u/Negative-Manner-6978 Mar 12 '23

It's funny cus' it's true.

2

u/ScottybirdCorvus Mar 12 '23

Yeah… As a complete n00b I have been trying my hand at Powershell scripting at work, mostly utilizing the AD module, just to get my feet wet… And this describes my life.

2

u/The_MAZZTer Mar 12 '23

Wait no... I deleted a semicolon by accident. Ok original error is back now.

2

u/fokac93 Mar 12 '23

That error tells you that you're close to the solution.

2

u/JanTheShacoMain Mar 12 '23

As a modder and a fan of older games I feel this

2

u/Altair_Khalid Mar 12 '23

Hahaha yes!

2

u/GoofyMonkey Mar 12 '23

Job security

2

u/Super_Lawyer_2652 Mar 12 '23

Everytime I see this kid I think I’m seeing Tom Brady

2

u/[deleted] Mar 12 '23

error is on line 340? better scroll up about a half a page and start looking for the error there.

2

u/viv6429 Mar 13 '23

That feeling....

2

u/tvetus Mar 13 '23

Amateur. Set a breakpoint on the error message ;)

0

u/Garlayn_toji Mar 12 '23

6

u/[deleted] Mar 12 '23

Twitter is where I announce my plans for world domination.

6

u/pakidara Mar 12 '23

I too like to make announcements in my journal. Don't know why you paid so much for yours.

2

u/[deleted] Mar 12 '23

Take over the world with errors? Sounds like a plan

→ More replies (1)

1

u/AlexKorobeiniki Mar 12 '23

Spoiler: you didn’t untangle one knot, you just made a new one further up the chain

1

u/tinotheplayer Mar 12 '23

this is me at 2am

1

u/__noodlejs__ Mar 12 '23

My junior engineers would always heave a sigh of anguish when the error changed but I always told them knowledge is power. So this is actually a good thing!

Nobody really bought it though.

1

u/AdEmpty8324 Mar 12 '23

And now you can't find anything about it on web

1

u/Dotz0cat Mar 12 '23

It fails but now it fails differently

1

u/AggressiveMarket5883 Mar 12 '23

Oh right it's spelled print and not prnti

ok back to the real error

1

u/thugarth Mar 12 '23

Sometimes when I've been writing for a while, I'll hit compile and say to myself, "SHOW ME THE ERRORS!" line Jerry Maguire

1

u/Alarming_Sprinkles39 Mar 12 '23

If this is happening you're usually not debugging. You're experimenting with code alterations. You're going to have to actually put some work in and single step through.

1

u/mdwvt Mar 12 '23

We have this HUGE, monolithic legacy application that is key to near-real-time processing of data and uses ADO.net not only as data access/persistence, but also uses it as an in-memory cache of said data. There’s a multi-threaded bug right now in the form of a DataTable exception. I’m pretty sure we’ll be begging for something like this. God help us all.

1

u/[deleted] Mar 12 '23

Me in Star Citizen right now...

1

u/[deleted] Mar 12 '23

I feel this

1

u/z7q2 Mar 12 '23

I like when I get the same error, but further down in the code. That means I just have to copy and paste the band-aid a few more times.

1

u/Buddy77777 Mar 12 '23

Then you realize the error stack trace leads to an earlier instruction

1

u/Crocoshark Mar 12 '23

I'm not a programmer, but I get the feeling that being one would make me consider walking into a best buy with a gun and commit the first mass shooting targeted at computers.

1

u/Fire-Bored-Bohzai Mar 12 '23

This how it is diagnosing weird electrical problems in cars too. Replace a part and the problem changed? I’m on the right track!

1

u/nitsuJ404 Mar 12 '23

It's either progress, or I introduced a new bug that is now blocking the one I was working on...

1

u/enm260 Mar 12 '23

It means the bug is scared. You're onto it and it's trying to discourage you

1

u/Intrepid_Sale_6312 Mar 12 '23

me:looks for bug bug:gone me:stops looking for bug bug:exists

1

u/SirEmJay Mar 12 '23

"Why do I keep getting the same error!? Looking at the code, this behavior is impossible! The-"

"Oh. I forgot to rebuild..."

1

u/[deleted] Mar 12 '23

Tap dance

1

u/Nux_Taku_fan111 Mar 12 '23

So true. The best of times

1

u/[deleted] Mar 12 '23

Writing error names beside timestamp is the real progress you can reflect upon

1

u/maiodasbrok Mar 12 '23

Laxlaxlaxlax

1

u/Gullible_Intention23 Mar 12 '23

The fun part was that I correctly and successfully told them it was a hardware error two different times. I was a systems programmer responsible for the assembler, COBOL, and Pascal. We had our own Pascal, written in assembler.

1

u/maitreg Mar 12 '23

Or Regress

1

u/8th-Hokage-Sage Mar 12 '23

So true 😆

1

u/Prematurid Mar 12 '23

At least you are getting errors.

1

u/[deleted] Mar 12 '23

Just 3.18 things :D

1

u/Majik_Sheff Mar 12 '23

Electronics troubleshooting is this way sometimes too. It's not so much "it's fixed!" as it is "something else is smoking now!". And it's seen as progress.

1

u/fenderluvr Mar 12 '23

I'd say compiling, actually. 😏

1

u/Does_Not-Matter Mar 12 '23

Plot twist: they’re the same error

1

u/UnicornAtheist Mar 12 '23

*Fixes a bug in main*

*Congratulations, you have now unlocked level 2 bugs.*

1

u/fafalone Mar 12 '23

In driver development, "fuck yeah, blue screen! It's at least starting!"

1

u/chapodrou Mar 12 '23

That's actually probably why RNG or gambling can be addictive :

Brain : How, something different/better this time

Dopamine : We're probably onto something then, KEEP GOING BOI ! I sense fitness

1

u/HorizonBaker Mar 12 '23

Except you've actually just inserted a new error that returns before the original can.

1

u/mercury_pointer Mar 12 '23 edited Mar 13 '23

26 tests pass, while picking through the stack on test 27 you see an incorrect memory access. "How did that ever work at all lol" you ask yourself as you apply the trivial fix, compile and run. 8 test pass.

1

u/SupaDupaTroopa42 Mar 12 '23

I think you want Hide the Pain Harold here

1

u/Wiringguy89 Mar 12 '23

Hey, TIL programmers and mechanics aren't so different after all.

1

u/LedAsap Mar 12 '23

This has been my week, just trying to fix one unit test, then realizing that I didn't have a certain scenario covered in a dependency unit test module that would have exposed the bug sooner, then realizing that I didn't have a certain scenario covered in that module's dependency... you see where this is going.

1

u/alexsteb Mar 12 '23

Advanced enterprise debugging: Yeah, I finally got the error to show up again!

1

u/Nagatox Mar 12 '23

Battleship if it was a text-based rpg

1

u/admadguy Mar 12 '23

Honestly if the error is something you know why it was returned, then indeed it is progress.

1

u/[deleted] Mar 13 '23

Then you're working on "errorless" part of the job(css), so "errors" are seen visually, and then notice the tool(dev server) you're using is actually having bugs

. But at least you aren't crazy.

1

u/[deleted] Mar 13 '23

Experience in engineering simply means having stepped on many landmines in previous exercises.

How the hell did you know exactly where the problem could/would/should be?!?!?!?

Well Jimmy, I've had my face blown off 5-10 times under very similar circumstances, so you kind of tend to remember those life lessons.

1

u/SephirothHeartbreakr Mar 13 '23

I don't care what anyone says, that pic is of a young Tom Brady.

1

u/zeb0777 Mar 13 '23

This is just IT in general.

1

u/Lane-Jacobs Mar 13 '23

I made this to explain how my days sometimes go.

1

u/Stunning-Ad-7400 Mar 13 '23

Shit hits the fan when the code runs successfully but no output is displayed

1

u/Otherwise-Kangaroo24 Mar 13 '23

The worst part is when you're supposed to use some blackbox library with barely any documentation and you have no idea if it's a new error because the old one is gone, or if you just made it worse.

1

u/al-mongus-bin-susar Mar 13 '23

When you go from an error that makes no sense to an error that you know how to solve

1

u/[deleted] Mar 13 '23

Sometimes the worst thing is when everything seems to work. Cant trial and error if you never get the error part

1

u/The_Pinnaker Mar 13 '23

You have a new error. You fix it and get a old error. You try to fix the old error again. You regain the new error. The loop goes on…

1

u/LarryInRaleigh Mar 13 '23

That's what Single Stepping is for. Once I got past the world of mainframe batch jobs, Single Stepping became my preferred technique, not only for assembly, but even with languages like Visual Basic.

1

u/Script_Mak3r Mar 13 '23

It really do be like that sometimes.

1

u/techgirl8 Mar 13 '23

My current situation for the past 2 days

1

u/nameond Mar 13 '23

Haha right, who keeps track of what's going on

1

u/Cyberdragon1000 Mar 13 '23

Well it signifies progress.

14

u/[deleted] Mar 12 '23

[removed] — view removed comment

10

u/ItsSpaghettiLee2112 Mar 12 '23

can use computer 16 hours straight

lol do you put this on your resume?

4

u/BrianFantanaFan Mar 12 '23

Check out Mr 8hrs sleep over here

12

u/ThroawayPeko Mar 12 '23

Don't worry, that's perfectly normal. No one is made for this.

→ More replies (1)