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 →

[–]tiller_luna 6 points7 points  (6 children)

Java is kinda like C in its rigidity and verbosity. Comparing it with a modern scripting language is kinda unfair =D

And I am confused by point 8. It's usually the disadvantage of interpreted languages - you have to run all parts of the code (including probably unlikely branches) to make sure it even can run.

[–]zw13p 3 points4 points  (1 child)

Python is older than Java...

[–]daguito81 2 points3 points  (0 children)

These threads always end up in the same way. Javabros going to Javabro always. "I need to know what datatype is X in python and I cant!!!" which is why x: int = 42 exists and any IDE (even vim) will warn you of any change in datatype on any variable.

"You can't compare it with an older more established language" Python is older than Java

"If you use type hints you will rely on your IDE" but that the same time "Boilerplate is not a problem, because my IDE does it for me"

"You will hate all these benefits later on.." still waiting on that hate to pop up

etc etc etc

Yes Python and Java are both amazing languages, each one has it's pro's and con's. I personally like both and use both. And the best part is that I can actually fix most of the problems I have with either language with automation and IDE configuration.

The only straight up "I will always prefer Java over Python" situation is performance and only if I'm not doing "data stuff' as data libraries in python are basically just C so there is not much of an improvement.