26

If ever your code breaks, just utter these words and it will magically fix itself:

"Wtf. Hey [coworker name], Can you sanity check this code? I don't know why this segfaults! It looks fine but you just run it and it bre- oh wait... I swear it didn't work a minute ago."

Comments
  • 1
    uninitialised variables, malloc returning memory with your own process' memory garbage upon second allocation, missed dependencies in the makefile during recompile, not entering the erroneous code path the second time...
  • 4
    Yup, that's me whenever i have a problem. I ask a friend's help, and while explaining i'm like: "umm, actually, i'm retarded. I know where the problem is". He laughs everytime xD
  • 2
    @thatgirl yea that too but you ever have perfectly valid looking code that only segfaults when you're alone? If anyone, anyone at all watches, it always works?

    It's like it knows!
  • 2
    @deadPix3l been there last week, perfectly relatable
  • 0
    This is why we have rubber ducks... To avoid the shameful skint the Co worker part.. Just ask your ducky
  • 2
    @joykill you'd think right? C code especially has some magical way of knowing if there is another living being watching.

    If(living observers>1) {
    //Operate as expected
    }
    Else {
    //All the Errors!
    Memcpy(&kernel_owned, &null_ptr, 1000000000);
    }
Add Comment