Answer the question
In order to leave comments, you need to log in
What is the best way to program for cross-platform?
Hello. Tell us what in your opinion is better to write code (in what language) in order for it to be as cross-platform as possible.
Yes, I understand that you can port, there are all sorts of SDK and NDK and different libraries, etc. but still, in your opinion, in which language is it more optimal? C++? java? Python? assembler :) ? well, or your option, and on what do you code for cross-platform?
Answer the question
In order to leave comments, you need to log in
The most cross-platform C.
Without the use of platform-specific libraries. And not C++, since not all platforms have such a compiler.
Two questions.
1. What does your program/library deal with? Does she have something interesting beyond the console - windows, network, etc.?
2. Do you need the same package - physically the same - to work under different OSes?
Minus minus: this is the simplest. Use a well-specified language with multi-OS implementations like C++, Java, and Python.
Plus or minus: use the same language, but with a cross-platform framework. I would suggest the Qt framework and the Boost library, although each language has something different.
Cons/Pros: Use a language with standardized intermediate code like Java. Or Python and JavaScript directly executing source code.
Plus-plus: Here we need both a standardized intermediate code and a cross-platform framework. Since this framework often needs to be downloaded separately in a version for the desired OS, Java and, possibly, Python will work here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question