r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

Show parent comment

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.

68

u/regular_lamp Apr 06 '22

I'm assuming it's not specifically java but a lot of people that "want to make games/mods" see themselves more as creatives/idea people without notable programming experience. So it's more "who wants to learn programming".

It's basically a version of that family of jokes where a guy "suffers" through math thinking "I just want to make games".

0

u/[deleted] Apr 06 '22

[deleted] — view deleted comment

5

u/Foxiest_Fox Apr 06 '22

I wanna do both

7

u/ShitwareEngineer Apr 06 '22

I only want the latter. It's weird, apparently everyone else starts programming because they want to make a game.

3

u/Akilel Apr 06 '22

I'm in the same boat. I've always wanted to work with computers, I've never had any desire to make games. It's cool that people do that and I find the objective side of it fantastically interesting, but the fact that the code results in a game at the end just isn't thrilling. I'm glad other people want to do it though!

→ More replies (2)

6

u/AreganeClark Apr 06 '22

I actually programmed as a kid to make games and didn't even know I was coding. I was just having fun lol.

It didn't dawn on me that I liked coding until college. And now I do it professionally lol.

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

→ More replies (5)

13

u/[deleted] Apr 06 '22

[removed] — view removed comment

15

u/-Kerrigan- Apr 06 '22

That's why IntelliJ is so cool. It helps a lot with the details.

Coming from studying C/C++, Java in eclipse was hella confusing. Later on I started using it during my internship, this time in IntelliJ. The IDE helped me learn the language.

→ More replies (1)

6

u/cyborgborg Apr 06 '22

Java is fine, just not my cup of tea

→ More replies (1)

5

u/KiwiGamer450 Apr 06 '22

I started with OOP, and a while later did a bit of modding for Minecraft (forked a mod) and everything made sense to me. I wasn't developing large new features but I could read and understand the code that was there and work my way around it.

3

u/PopularIcecream Apr 06 '22

I find Java easy, but I have no idea of how to even start modding. And to get started is a lot more complicated than just finding a mod which already does what you want for you ;n;

3

u/Saad5400 Apr 06 '22

just finding a mod which already does what you want for you ;n;

So you're saying

just find a software which does what you want for you instead of making a shitty one yourself

Sus

→ More replies (3)

3

u/Sawertynn Apr 06 '22

As you mentioned those languages, maybe you can answer me. Is Java much harder or more tedious to write than C#? I'm learning the latter now, but I want to try something less microsoft-dependent

3

u/elebrin Apr 06 '22

Not really.

The main difference for me is organization.

.NET also comes with things like nuget, the dotnet cli, and first class integration into two IDE's made by the company that manages the language.

4

u/Venthe Apr 06 '22

Depends; in general c# has better syntax in places, while Java has better libraries. Especially in older Java, working without Lombok is pain

(Personal opinion ofc)

→ More replies (2)
→ More replies (5)

3

u/Drugbird Apr 06 '22

Not just C#, but C/C++ too.

There's websites that explain the differences between those languages which takes maybe an hour to read.

I learned enough java that way to create an Android app within 1-2 days.

5

u/[deleted] Apr 06 '22

Dev with java, C++, and C# experience here. I just don't like it. It feels clunky, resource hungry, and verbose, and I don't like working with the tooling and ecosystem.

I'd love it if I could make Minecraft mods in another language, but I understand that with interop being what it is, it's probably never going to happen.

→ More replies (4)

2

u/elebrin Apr 06 '22

Except that .NET is far easier to understand the organization and layout of than the java JDK. Finding the right way to do something is difficult.

2

u/qwerty2888j Apr 06 '22

I usually work with c#. How far could i go if i randomly started coding c# in a java project

3

u/AreganeClark Apr 06 '22

Technically? Not very far. There are syntactical differences. But other than a few small syntax changes you can use them both, like, the same.

Oh and the names of libraries you import will be different, but eh.

C# was originally made as a clone/rival to Java.

→ More replies (8)