Programming is simply a way for us to give instructions to computers. We give it an instruction manual and the computer follows. Without code computer programs wouldn’t do anything. You wouldn’t be able to move the mouse around on your screen, you wouldn’t be able to play games on your phone or watch Netflix.
A computer doesn’t understand English or any other human language. Computers speak in ones and zeros, not only that all electronics speak that language.
Imagine you try to speak in computer languages. Can you do it in only zero and one? Yes! You can, but it isn’t easy at all also hard to keep it up. Here is an example, if you want to say hello to your computer you need to say in zero and one.
# hello in binary 01101000 01100101 01101100 01101100 01101111
And now what if you want to exchange a full conversation.
# In English: Hello, I'm superman. I can do lots of heavy work. ------------------------------------------------ # In binary 01001000 01100101 01101100 01101100 01101111 00101100 00100000 01001001 00100111 01101101 00100000 01110011 01110101 01110000 01100101 01110010 01101101 01100001 01101110 00101110 00100000 01001001 00100000 01100011 01100001 01101110 00100000 01100100 01101111 00100000 01101100 01101111 01110100 01110011 00100000 01101111 01100110 00100000 01101000 01100101 01100001 01110110 01111001 00100000 01110111 01101111 01110010 01101011 00101110
Hey! Can you keep it up in all those zero and one. I don’t think so.
To communicate between humans and computer, we need a medium which allows us to understand each other. Depending on programming languages some use Compiler or Some use Interpreter.
We write human-readable code and interpreter or compiler convert human-readable language to machine language.
Interpreters translate line by line and execute the line. And compiler translates all lines of a program to a file usually called a binary and execute the whole file at once.
There is more than 700 programming language out there. I know it’s overwhelming.
why there are so many programming languages?
So the first reason why there’s a lot of languages is that people keep creating them, even when they don’t need to. Another reason is that some languages are much better suited to specific tasks than others. Some programming languages are also much easier to learn than others.
You might also think aren’t they are all the same?
Underlying this fact is that all of these languages serve the same purpose: to turn human thoughts into the 1’s and 0’s that the computer understands. In highfalutin computer terms, they are all “Turing complete”.
At their most foundational level, these languages are all the same. But on the surface – where humans interact with them – they vary a lot. This is where other concerns come into play.
Programming languages are tools, and we choose different tools for different jobs. For example, A tractor trailer and a Tesla are all vehicles – they have wheels and steering and will get you from point A to point B – but obviously we use them for different things.
Languages often make trade-offs in terms of convenience, safety, and speed – much like vehicles. The trade-off is dictated by the job at hand.
Now you are thinking, How I’m going to learn all of those. You don’t need to learn all of those programming languages. Here is a guide for choosing the best programming languages for you.
In summary, we have a variety of programming languages because there is a variety of jobs to be done and a variety of people who do those jobs. This diversity makes exciting programs – and interesting companies and exciting careers – possible.