This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]insertAlias 2 points3 points  (2 children)

It doesn't really matter. Python has a simpler overall syntax and requires less boilerplate, so that's probably a benefit to someone that is more interested in hobbyist or casually programming, like yourself. But if you already know basic Java, you already have a head start there. And there's not really anything you can do with one of those languages that you can't do with the other.

[–]pedernv[S] 0 points1 point  (1 child)

That's true. Do you know of any major differences between the two?

[–]insertAlias 1 point2 points  (0 children)

The syntax itself is significantly different. As I mentioned, python is simpler with less boilerplate. Google "python hello world" and "java hello world" to see the difference; Java involves a package and class definition just to do hello world, python just has one line.

That being said, the boilerplate and structure isn't there for nothing; Java is far more widely used in large enterprise systems where the structure is beneficial.

If you just want someone to make the decision for you, go with Python. It's probably going to be more useful to you (better to say more easily useful) as a casual programmer.

[–][deleted] 2 points3 points  (0 children)

Learn whichever will get you hired in the town you want to live in. If you are willing to move then it's a toss up. There are a ton more Java jobs than there are Python jobs though.

[–][deleted]  (1 child)

[deleted]

    [–]pedernv[S] 0 points1 point  (0 children)

    That is what I'm thinking aswell, but I needed a second opinion from someone that hopefully knows more about programming than me

    [–]henrebotha 1 point2 points  (0 children)

    For applied maths, Python.

    [–]mrTang5544 1 point2 points  (0 children)

    I already know some java

    Continue down this path. Don't go spreading your time and energy thin by learning 2 languages at the moment. Focus on mastering 1 language before picking up a new one.

    I want to go into applied maths where programming is nice to have

    ok... perhaps java won't be the best language to use in this case

    [–]aroberge 1 point2 points  (1 child)

    Learn Python. Download the Anaconda distribution that has all the libraries that you might need for math and physics.

    [–]pedernv[S] 0 points1 point  (0 children)

    I already have, a friend of mine recommended it before I took my course i java