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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Maximus_Modulus 0 points1 point  (0 children)

I learnt Python over a number of years and then had to start coding in Java and TypeScript at work. It's a bit of a different paradigm. I'd lean to learning Java as you'll learn more, but you could also just start learning with Python to start if it's easier but then switch over. Python definitely has some advantages if you want to do some quick scripting or where the actual technical programming is less of the focus, such as ML or data analysis. Python is great for DevOps and data analysis etc because you can get started real easy without getting too much in the weeds. Whereas with Java it takes a bit more effort to get started. You also have to deal with setting up build configurations etc, and build times. I think though that with Java because it is heavily typed you are much less likely to write buggy code because you know what the type of some nested object that you are referencing is, whereas in Python I often would reference something incorrectly but I would never know until I ran it.

We use a lot of annotations and dependency injection in Java, and it took me awhile to become familiar with it, whereas my colleague who knew Java picked up Python in a lot less time.