r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

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]

31

u/Axe-actly Jul 20 '18

echo 'F';

for the lazy php lovers like myself.

4

u/Zegrento7 Jul 20 '18
p 'f'

If you're too lazy to type, just use Ruby.

→ More replies (1)

3

u/CrazyAlvat Jul 20 '18

Liar!

Nobody loves PHP!

→ More replies (1)

72

u/logicalmaniak Jul 20 '18

this

120

u/crashdoc Jul 20 '18

this.silence = true;

0

u/[deleted] Jul 20 '18

[deleted]

9

u/logicalmaniak Jul 20 '18

Well you know what they say,

If at first you don't succeed,
try { } catch (Exception e) { }

5

u/[deleted] Jul 21 '18

Well there's no more error. Must be fixed!

20

u/zulutune Jul 20 '18

SilenceFactory.instance().setSilence(true);

2

u/el_bhm Jul 20 '18

Concurrent modification exception.

Game on!

22

u/SheepLinux Jul 20 '18

({}?(this.silence):false)

3

u/Newfollop Jul 20 '18

Silence.set(true);

2

u/uabassguy Jul 21 '18

Unable to access protected property silence

→ More replies (1)

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)

8

u/robi4567 Jul 20 '18

Did you have to wait the 10 seconds and if so did you ever find out why you had to wait the 10 seconds. Because that makes no sense to me.

13

u/mw9676 Jul 20 '18

An async call needed to complete?

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

4

u/[deleted] Jul 20 '18

java is nice.

2

u/NoceboHadal Jul 20 '18

What's wrong with Java?

6

u/dov1 Jul 20 '18

Nothing except that when you're working with arrays you really need to understand what Java is doing with the array, or you can end up with an unexpected output. This is true for the same exact code. If the dev understands it it works well if not it doesn't.

Edit: disclaimer, Java developer

4

u/minnek Jul 20 '18

What are you doing with arrays to cause undefined behavior in Java??

→ More replies (2)
→ More replies (6)