r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

482

u/a_useless_communist Apr 06 '22

Ok am i doing something wrong because i find java really easy...

291

u/AreganeClark Apr 06 '22

It's so well documented and there are tutorials & stack overflow questions everywhere.

Maybe people have a hard time with OOP?

Idk. If people have ever touched C# they know Java too.

74

u/daster1234 Apr 06 '22

That's my suspicion as well. If they're using scripting languages like python, OOP is more optional. Java requires you to understand OOP and class inheritance.

I used to tutor beginner programmers for the Java course, and the biggest hurdle all of them had was OOP. Once they got past that, everything else was more or less straight forward with minor struggles around programming concepts like recursion and threading.

15

u/elebrin Apr 06 '22

Inheritance vs. composition is a big deal. Honestly it's a red flag when I start to see several layers of inheritance, but that sort of thing is all over in the libs.

9

u/_PM_ME_PANGOLINS_ Apr 06 '22

Libraries are about offering lots of different ways to do things and plug your own bits into them.

If you’re writing an application instead then you only have one specific implementation so much less inheritance.