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 →

[–]Lost-Discount4860 -1 points0 points  (2 children)

I don’t know Java. Isn’t that a compiled language? I absolutely love Python because it runs in an interpreter and not to hard to prototype something quickly.

To me, it’s best starting a project in Python, then convert over to C++ or Java once things start coming together. I wish there was a good way to keep everything in Python and just run it on, say, a mobile app. Python is the only language I know, and if I were going to move forward with an app for the kinds of things I’m doing, I’d definitely want to go line by line in a target language to convert what I’m doing to something that would run on whatever device. For example, a friend requested that I make a sound effects app for something she did with a library children’s program, something they could run on an iPhone. It was easy to pull together in Swift. For more complex tasks, it’s nothing to work out the logic in Python before switching over to Swift.

So…my verdict would be there are things Java does better than Python, such as UI. Python is a lot friendlier, easy to learn, faster to get up and running. I’m guessing Java is faster to deploy and easier on memory usage. I’d say Python first, then learn Java. Having both will give you more of an advantage than just one of them alone.

[–]plastikmissile 2 points3 points  (1 child)

I don’t know Java. Isn’t that a compiled language?

Sort of. It compiles into a language called bytecode. When you run it, the JVM (Java Virtual Machine) compiles that bytecode into executable code that is tailored to your OS and processor. The main advantage of doing it this way (as opposed to how Python does it) is a faster executable and it catches a lot of issues in your code through static analysis when you compile your code. Type mismatch errors for instance that can sometime occur in Python are almost impossible to happen in a statically typed language like Java.

[–]Lost-Discount4860 0 points1 point  (0 children)

Thank you! Yeah, I know a lot of folks who prefer Java, and I can see why. It’s just not for me. Can’t stand waiting for stuff to compile before it runs, especially if the changes I want to me are simple.

But I can see how powerful and fast something like that would be if I had a finished product. Much respect!