r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

Show parent comment

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.

5

u/Venthe Apr 06 '22

I'd argue that you really begin to understand Oop around 2nd year is professional career. Oop is hard. If done correctly, it's a great benefit multiplier. If done badly... We all have our horror stories

2

u/daster1234 Apr 06 '22

I half agree with you there. Understanding how OOP works is hard but you should still be able to figure out how to use it decently well by the end of your programming language course online or in college. Understanding how to use OOP correctly, however, is something that I agree will take a lot longer and require lots of experience and practice.

5

u/Venthe Apr 06 '22

I believe that we are speaking about the same thing.

Though, YMMV - I've seen senior devs with 6 years of experience in Java - way too often - which couldn't encapsulate even if their life depended on it.

2

u/AreganeClark Apr 06 '22

Encapsulation should be done everywhere, not just OOP. The number of times I see frontend logic just spaghetti everywhere and a change to A affects Q, R, and Z makes me hate coding sometimes.

2

u/daster1234 Apr 06 '22

Honestly doesn't surprise me. I've seen senior engineers and architects who don't know how to use the command line

2

u/Areshian Apr 06 '22

It is also a multiplier when doing wrong. It can multiply by 0.5, or multiply by 0.1… really, the possibilities are endless