How to get started in programming and what really it is?



 Hi guys, you may often listen the word programming more frequently these days, may be in adverts or in a random google search. Have you ever thought what this programming really is and why this sounds more these days than previous times?

 


If yes,(if no too, you are allowed to give 3 min from your life) then lets get started!! 


Programming or coding just simply mean giving our known intelligence to a machine and making it to do a particular job or task, what do i mean is do you ever wondered how google works or anything you use in your mobile or pc or anything else? Just let me explain, when you search for a query in google how will you get results based on your query?

 Take few moments and think in all the way you can, come back!! You(not majority) may probably  think like people working in google will answer to all of us, anf all software companies are doing that work , bla bla bla etc..  haha, no that's not how things being done, daily some millions or even billions of searches are being done in google or in any search engines, it's not possible to answer those questions manually right? i.e people responding, so, some highly trained brains made search engine like google to  respond to querys automatically that is by computer itself. 


Giving intelligence to the machines to do a particular or specific task is called programming. In a simple word instructing machines to do our work in a language which they can understand. A machine performs it's program(i.e, a set if instructions or code) infinite number of times. I mean it don't get bored doing a same thing infinite number of times, so even making millions if querys every day will not be boring task for a machine (because it's a machine and it  don't have any feelings!!).


Not only feelings it can't take decisions on it's own, don't think of like it don't have brain too, it has but in a different way. So it can't take decisions, then how to work with it? Just making them intelligent by injecting our known intelligence to them with a programming language.  


Programming is giving intelligence tomachines to  do specific tasks for us right? But how? How they can understand our langauge or words? They have no ears right? Even if they have they don't know our languages!! So we have to instruct them in a way they can understand, so what they can understand only 0's and 1's , but what you can do with these 0's and 1's right? Programming languages are hence there like google translate us with computers. 


I mean programming languages like  python and  java etc.. has their own syntaxes(just like grammer) which can be read and understood by us and they can translate it to 0's and 1's in which machines can understand. 

So this is about programming and programming languages, but how they work practically? Let me show a simple example in c language. 

# include <stdio.h>

# include <conio.h>

int x,y,z; 

printf("enter any number ");

Scanf("%d ", &x );

printf("enter any number ");

Scanf("%d ", &y );

z = x+y;

printf("sum of two numbers is "+z);

Don't worry!! If you can't understand above lines, this is just a  cake walk, the program initially  asks to enter any two numbers, when you entered it will show an another number of sum of two numbers, here it is your machine or compiler, you can search for dev c++ to download in pc's and in mobile, apps like d coder, programming hub, solo learn are there to help with compiling.

# include <stdio.h>

# include <conio.h>

int x,y; 

printf("enter your new password");

Scanf("%d ", &x );

printf("enter your created password to login  ");

Scanf("%d ", &y );

if (x==y){

printf("welcome to my blog");

}

else{

printf("you entered incorrect password, try again!! ");

}


Above program tells us that to create a new password to login to a blog and whenever user wants to visit blog again he needs to enter password and machine compare it to the password entered at the time of creating account in blog and if both are same it will say welcome, if not, it will say try again !! 

Here in c langauge syntax is , printf means just printing whatever there inside quotation marks and scanf mean storing a number or a constant in a variable, not only numbers but by using scanf we can store any values like pointers, strings, etc.. which you will see later in the journey!!



 Here printf and scanf act as functions and those first two lines are libraries in which  we can use in our program to run i.e, actually our program or code works in those libraries , to say in a word those are the ones which can convert our syntax to 0's and 1's , so by using # include  we can include them in our program so that it can convert for machibe , no need to understand now, i just wrote it to depict what actually programming is, and you can make programs of your own to reduce boring stuff and can create apps or websites, what not any thing you see on mobile can be done with programming.


Aah! It's time to leave!! Hope you understood what programming is and i will try to share as much as knowledge i can in an practical way with examples, later i will share best resources to learn more about programming and  i too will  share code with you , and all you need is   NOTHING . 

I write on hub pages too!! Later will share the profile!!

Stay tuned!! 

Your support will encourage me to share more!! 

Comments

Popular Posts