Porting Java code to C ++ or Python [closed]

0

I'm working on a project that was originally written in Java.

I want to learn more about math and logic behind the code, and I had the idea of porting the code to another language.

I thought of C ++ and Python.

Which one has more similarities and would take less time and effort to translate?

    
asked by anonymous 31.08.2016 / 21:58

1 answer

3

I do not think it's a good way to do what you want. Math and logic are learned outside of programming languages.

Java is considered, quite roughly, an evolution of C ++ (I can assure you that no experienced C ++ programmer finds this), so in theory it would be easier to translate to C ++ than Python, which bears no resemblance to Java , except for the semantics of if (nor the syntax) and something else. Python has an absurdly distant philosophy of Java.

But if you want something similar to Java you should opt for C #. This is a very similar and easy language. C ++ is difficult for a beginner who is still having trouble understanding the basic difference between languages.

If you do not know any, it will be difficult on either one. Then the difficulty is to learn the language. If he tried to learn during the translation, he could not have achieved either.

Anyone will say that Python is easier to learn than C ++, but that does not mean anything.

Either way you have to decide whether you want to learn something or if you want to save time, these things are incompatible (at least in the short term, as described).

What you should opt for I will not answer, but I point out the wrong way.

    
31.08.2016 / 22:40