r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

6.9k

u/that_one_mister_user Jul 20 '18

The sad thing is that this works some of the time.

2.2k

u/atomicspace Jul 20 '18

it’s a dark art.

0

u/[deleted] Jul 20 '18

[deleted]

702

u/Platypus-Man Jul 20 '18

Schrödinger's C

0

u/[deleted] Jul 20 '18

[deleted]

0

u/[deleted] Jul 20 '18

[deleted]

241

u/Axe-actly Jul 20 '18

A moment of silence for our brothers and sisters who work in java.

0

u/[deleted] Jul 20 '18

[deleted]

0

u/[deleted] Jul 20 '18

[deleted]

→ More replies (6)
→ More replies (21)
→ More replies (11)
→ More replies (2)

81

u/massenburger Jul 20 '18

Sounds like a timing issue in JS.

52

u/brygphilomena Jul 20 '18

Yea. Probably a race condition somewhere.

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

195

u/[deleted] Jul 20 '18

Slaps hood of IDE...

38

u/Kuhnmeisterk Jul 20 '18

I once wrote a program that was supposed to track and direct simulated trains and it worked great. Then I noticed I never actually ran the systems together... Still don't know what happened there, maybe the trains were sentient.

→ More replies (1)
→ More replies (56)
→ More replies (7)

457

u/Kidiri90 Jul 20 '18
if(DateTime.Now.Milliseconds%2==0)
{
    throw new Exception("lol screw you:);
}

154

u/plexxonic Jul 20 '18

I need to hide this in commits.

94

u/[deleted] Jul 20 '18

Hide it in a third party library that you snuck back into Artifactory.

0

u/[deleted] Jul 20 '18

[deleted]

53

u/[deleted] Jul 20 '18

Changing it to mod 31 might prevent someone finding it while it's in debug, but it's still an exception so there's still going to be a stacktrace that points you directly to it. Doesn't matter if the error message is searchable.

→ More replies (17)
→ More replies (3)
→ More replies (5)
→ More replies (14)

75

u/BuiAce Jul 20 '18

Race conditions most likely

0

u/[deleted] Jul 20 '18

[deleted]

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

64

u/[deleted] Jul 20 '18

Visual Studio really loves to just not compile at random. There's these really fun times when I have to find the right combination of building, cleaning, restarting VS and clearing directories for a project to work.

→ More replies (16)
→ More replies (131)