Eli5: What is the difference between various programming languages? Dont they all do the same thing?

779 views

Eli5: What is the difference between various programming languages? Dont they all do the same thing?

In: 33

27 Answers

Anonymous 0 Comments

They follow different logic principles.
Some are more oriented on hardware (e.g. Assembly). It was created in the early times and you address the hardware.
Then there are languages that are logical like Prolog.
Fortran is used by mathematicians.
PHP is backend, to manage servers, JavaScript is more useful for designing the layout of your website (JavaScript is for giving the input data to the backend, PHP or Python manages this data and gives back results).
Java or C or C++ are examples for high level languages. You don’t necessarily speak to the hardware (C is quite close to the hardware), but a compiler takes your code and brings it to action. For example you don’t need to worry where exactly your data is stored bc there are a compiler and your system that manage these questions.
In Java or Python you give direct commands, in Prolog your code consists of facts and rules. It’s more logical.

TL,DR: they follow different thinking patterns and are more or less directly talking to your hardware.

You are viewing 1 out of 27 answers, click here to view all answers.