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.

22

u/Dillawnz Jul 20 '18

This one time I kept getting a Hibernate exception so I set a break point to check out what was going on. After reading everything I continued running and it ran fine... I did some more tests and realized that it worked fine if I created a break point and waited about 10 seconds before continuing ¯_(ツ)_/¯ (eventually came up with an actual solution but still a heh moment)

1

u/Allways_Wrong Jul 21 '18

This is common behaviour.

Crashes. Set up a message to spit out some values at some point (debuggers are for wimps). Message indicates everything is as expected.

Remove message. Scratch head. Run again. Works now.

...I’m starting to think it really is a quantum effect, and our observations collapse it. : |