What is Programming and Coding in General?

Like actually what is it?

ยท

4 min read

Ever Wondered What Programming is? ๐Ÿค” You must have seen a ton of people going berserk on their keyboards typing out stuff that you don't understand, You Have no single clue about what they are doing? Well, I will try to answer some of your questions.

Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result or to perform a specific task. Programming involves tasks such as analysis, generating algorithms, profiling algorithms' accuracy and resource consumption, and the implementation of algorithms in a chosen programming language

So this is ๐Ÿ‘† what Wikipedia has to say, Does it make any sense? If you are not into Tech this must have made little to no sense๐Ÿ˜… Let's try to understand this!

A Little Knowledge About Computers and Code in General ๐Ÿ“š

Okay, we should understand first How Computers Work? Few Dozens of Decades Back during late 19th century first computer was made by Charles Babbage this computer was a mechanical machine or device to perform mathematical calculations with machine after giving it input in 0's and 1's, a Few decades later some very smart people made first digital computer which was coded in a new language called Assembly Language I suppose you already know that computers understand everything in 0's and 1's which is machine code but it Is very unreadable by humans, therefore, assembly was made

What is Assembly Language?๐Ÿ’ป

If you Don't Know, Here's a cool chunk of knowledge- Computers Don't understand the human language they are not so smart that they understand languages like English, Hindi, Japanese or any other language for that sake. Computers have their own language called Assembly which consists of 0's and 1's which is called Binary Number System Assembly made programming a lot easier as it converted code to binary(0's and 1's). It is a very interesting topic but giving details about it will be too complex. You can consider assembly a medium of speaking to a computer and telling it what to do.

Other Programming Languages?๐Ÿ’ป

Every code is written today essentially comes down to binary and Most languages are made of assembly which converts codes to binary. No one today writes code in Binary or even Assembly, Coding was made a lot simpler by introducing new languages like Python, Javascript, C++ which are again just different ways to tell a computer what to do. You could say Hello, How are You? to someone in a hundred different languages but essentially you're giving them a greeting and asking about their mood how did their day go.. etc You get the point right?

What is Programming finally then?

Programming is writing instructions to a computer in a programming language of one's choice to make it do repetitive boring tasks for us without us having to worry again. While computers maybe not be so smart on their own but they do have a lot of unutilized brainpower that can be guided to use for our benefit, programming is an art to use computer's brain to its maximum๐Ÿง 

What programming language to Use?๐Ÿ‘ฉโ€๐Ÿ’ป

There are several programming languages to do the exact same thing but people use different languages as they are best suited for different purposes. Here's an Analogy - Trains are fast and budget-friendly if you want to travel a few 100 km you may very well book a train, Let's say you wanted to go to your friend's place 2 streets back would you still take a train? One would prefer a bicycle to travel very small distances, a 3 or 4 wheeler for medium distances a train or an airplane for long journeys. Every vehicle is good for its purpose so are programming languages

For example here are code snippets to display Hello World on the screen in different coding languages:

Python:

print("Hello World")

Javascript:

console.log("Hello World");

C++:

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}

Assembly:

  org  0x100        ; 

    ; int

    mov  dx, msg      ;
    mov  ah, 9        ;
    int  0x21         ;

    mov  ah, 0x4c     ;
    int  0x21         ;

    msg  db 'Hello, World!', 0x0d, 0x0a, '$'   ; $-terminated message

So this was a quick overview of what is programming there are a million other things in programming and this article was a theoretical overview to programming, I highly encourage you to start programming and the web is a wonderful resource to the world of coding๐Ÿ‘

ย