r/learnjava • • Jul 17 '20

Can Anyone Do Java?

I'm a college student who previously did Javascript and is now doing Java.

I'm finding Java horrifically hard. I thought that since I had a background in javacscript, I would have a easier time picking it up but I'm not.

Why? Why am I having a breakdown over it? Is it because javascript is more artsy and java is more mathy? I am an artsy person (not a math person) so that's why I'm asking.

What advice do you have for someone who is learning it? IT FEELS LIKE A COMPLETELY DIFFERENT SUBJECT FROM JAVASCRIPT! I'm starting to wonder if I'm just not built for it.

So my question is, is it meant for everyone? Can everyone do it?

62 Upvotes

65 comments sorted by

View all comments

0

u/[deleted] Jul 17 '20

[deleted]

8

u/[deleted] Jul 17 '20 edited Jul 17 '20

This is not good advice. I’m a Sr software engineer and I’ve used many languages professionally: Python, JavaScript, Java, C#, C++, VB.Net, PHP, and more. JavaScript is a language that allows you to do things that java would never allow. Java is much more strict and unforgiving, and that’s a good thing in a lot of ways, especially for a beginner. It can be frustrating, but it will teach you better programming habits for your future coding.

Stick with it. Take the MOOC from the University of Helsinki.

Once you have the basics down, try creating something fun with it. Start very small. Don’t try to make a game at first. Games can be some of the hardest and most complex programming.

The reason why python would not be a good idea is because python is going to take everything you have learned so far about programming and totally change it. Suddenly, the white space matters but semicolons don’t. The types don’t matter, exceptions are used as control flow, data structures are totally different, and OOP isn’t as important. My point is, telling you to learn python is like telling a native English speaker that’s trying to learn Spanish, to try Mandarin instead.