When should I use C, Java, or Python ?
When should I use C, Java, or Python ? Python, Java and C++ area unit all generic programming languages, thus there’s plenty of overlap wherever over one among them could be a sensible choice. as an example will each Java and C++ be an honest alternative for embedded systems (depending on the details) and therefore the same will be aforementioned for C++ and Python once it involves desktop applications (once once more, looking on details).
But there are some clear-cut cases where one of them clearly should be chosen instead of the other two:
Java – Heavy server applications. Mission critical server-side applications.
Heavy desktop applications (office suites, web browsers, 3D-modelling and 2D-graphics software etc).
These are of course my personal conclusions, but they are based on more than 20 years of software development on small and large code bases (500k+ lines of code) for server and desktop.
Generally, the choices above comes down to the following strengths and weaknesses of the three languages in question:
Python – Quick to get something started. Low learning threshold. Good enough for production code in most cases. Not so good performance.
Java – Structured and clean. Scales well to massive comes. smart performance once given enough spatial relation. simply deployable on completely different architectures. smart fault tolerance (bounds checking, exception handling, garbage collection).
C++ – Best performance. solely language wherever you’ll work each with high-level constructs and low-level calibration. Scales well to giant comes. terribly flexible to specific conditions. easy accessibility to any or all system calls and libraries. tougher to be told and to stay code and structure clean. Longer and additional punishing development cycles. Lousy fault tolerance, in depth testing required.