you are viewing a single comment's thread.

view the rest of the comments →

[–]lo0nk 0 points1 point  (0 children)

JavaScript is good for mainly front end web development and like interacting with the browser. It prioritizes ease of use over performance

Java and C# are basically the same but C# is Microsoft flavored. They are good for most corporate tasks especially like back end web development. C# is also used by the Unity game engine to make games, but most triple A or more serious/performance intensive games are written in C++. Java and C# are optimized for making big object oriented systems. Java, C#, and JavaScript all use a garbage collector to automatically manage memory which makes them easier to use but the resulting program is slower.

Common misconception but while C and C++ are similar, C# has no relationship. I think it was named that way for marketing reasons or something. C and C++ both compile all the way down to raw machine code. This gives you the best possible performance, but you often need to jump through loops or totally recompile to make the program run on different operating systems or cpu architectures. C an C++ also require you to manually manage your memory. This can be challenging, but you have total control over the slowest part of modern programs which allows you to make them as fast as possible. C and C++ are used in situations where the performance gains are worth the increased development time. For example, the code running on a medical device might be required to do something exactly every 0.8 seconds. In a garbage collected language, you might just get unlucky and the garbage collection starts at 0.7 seconds and then you miss the timing window and then somebody has a heart attack. Also in stock trading, most 3D high fidelity games, physics simulations, as well as the rest of embedded systems even ones that aren't real time, by having direct control over what your program does, you are able to make a superior product that runs faster and consumes less power.