What is Programming?

Programming is a process of telling the computer what we want it to do. It's like talking to someone and telling them what to do.

But we need a language to communicate and it doesn't understand the language like English or any other language like it. We use languages called programming languages and process of writing a program is coding.

There are many different programming languages, some of them are - C, JavaScript, Java(different from JavaScript), assembly, etc.

Why so many programming languages?

Every programming language has their purpose. To understand why so many programming languages, we first have to understand how execution of a program works.

A CPU, Central Processing Unit, is responsible to perform all the processing, it processes a set of instructions that are nothing but some voltages that are represented as binary - 0s and 1s. High voltage is taken as 1 and low voltage or zero voltage is taken as 0. The binary string, also can be called machine code, are the series of 0s and 1s.

Now, this is very difficult to write these 0s and 1s. To solve this problem, assembly was created which consolidated the CPU operations as some human-readable words like ADD, MOV, etc. Similarly, to make it more readable further improvements and creation of languages happened and we get languages like C, Java, FORTRAN, COBOL, etc. Then different approaches to write code and solving problems arised, and we got Object Oriented Languages, functional, procedural languages, etc.

Similarly, there are many categories, purpose of languages and that's why we have so many programming languages. For the purpose - there are so many purpose and for each purpose, we have some set of programming languages that are preferred more than other languages. For example, C is a good language for writing operating systems due to its efficiency in writing hardware related codes. C++ is considered good for game development, We have JavaScript for web development and Python, R is mostly used in Data Science due to having very good readability.


© progshala.in