Thursday 5 November 2015

#3-Learn New Language

Why a new Language? 

We need to communicate with computers and for that we need some medium. Language helps fill in that gap. But like our spoken languages computer languages are bit different. They are more strict in form of communication. A statement in computer language is not mood dependent or varies according to the tone in which user has spoken. That is why spoken languages are difficult to interpret and it takes really a good amount of efforts to understand a spoken language easily. Computer language is much simpler in all respects as mentioned a statement in computer language has only single meaning i.e. it will be same for all the computers no matter what. 
Since computers need specific instructions the computer languages is structured in similar way. Many computer languages can be written using English but there are variants in other languages too. 
The statement is confusing right?  We write computer language in English but it is not English. 
Yes, it is true if we remove out grammar from English and just keep few keywords with some known sequence we derive a computer language. These are 4th Generation computer languages. They have been evolved as  computers have been evolved. The previous generations were more tedious to understand which started from just having sequences of '1' s and '0' s called Machine Language then some words like MOV, CMP called as Assembly Language then instructions etc. So a new language is needed to be understood to make communication smooth between us and computers.

C# - pronounced as "See Sharp"  

We will be covering C# in coming tutorials. A brief history of C# is it computer language which is used to create programs on Windows Operating System. The language was born in 2000 under the leadership of  Andes Hejlsberg in Microsoft. The language is similar to C++ in terms of syntax, it is based on Object Oriented Programming Concepts. We are going to cover Object Oriented Programming in detail in coming tutorials. 

Lets revise what we understood 

1) Computer language is not mood dependent or Tone Dependent. A statement in a computer language means same for all computers no matter if you are angry or sad at that time.
2) Computer language are set of instructions which are specific and precise
3) There are generations of computer languages which have evolved over time
4) C# is Microsoft created language which helps creating programs for Windows Operating System


Wednesday 4 November 2015

#2-What is Programming?


Programming


Before we learn programming, we need to know what is it and why it is required? Programming in simple terms is communication with machine. For e.g. when we speak to each other we use the medium language and we provide information or some instructions to other person. Now instead of other person if we switch that to machine this remains the same. We provide information to the machine or provide some instructions. The process of providing that information and instructions to a machine is called as programming. So programming is something we do every day with each other but never realized. 

Why do we need to communicate with machines? 
Machines are a wide range of products, anything that works on mechanical energy can be called as machine. Computers are intelligent machines, machines with whom we can communicate and provide information and instructions. Tasks which are 1) Repetitive 2) Automated 3) Error Free 
4) Time Consuming can be achieved easily by computers.  
All we need to provide is set of instructions to the computers i.e. program the computer. 

What is needed to communicate to computers?
Like we speak to each other we need a language similarly to communicate with computers we need a language too. We need to know English to communicate with a English guy/girl, we need to know Spanish to communicate with Spanish guy/girl same way we need to know the language which computers understands. There are many computer languages till date and every computer languages can be understood by different types of Computers on the basis of which is their Operating System a.k.a OS. Software is a program or set of instructions which are already written. The Operating System runs these instructions. For e.g. To play a Movie DVD you need a DVD player. Here DVD is the software, DVD Player is the Operating system. 
The Operating System is the base for all the softwares in the computer. There are various variants of Operating System 1) Windows 2) Macintosh 3) Unix 4) Linux etc. 
So to communicate with computers having such programs you need to know which language they can understand. Like for e.g. Windows can understand programs made in C#, VB.Net languages. It can also understand JAVA or C++ if it has a program which can understand this language. For e.g. Your DVD player can play movie DVD of any language but for you to understand that language you need subtitles or an interpreter. Here this interpreter is a software which helps computer understand this language.
Similarly, Java can be understood by UNIX also. Now this is not as easy as it looks but for now let’s understand we need a specific language to communicate with a specific computer. 


So let's revise what we learned 
1) We need to learn language to communicate with computers
2) Computers take in instructions and information and perform tasks
3) Software is a set of instructions already written for the computer
4) Operating System is the main software which runs all other softwares
5) Various Operating Systems like Windows/Unix/Macintosh etc.
6) Various languages C#, VB.Net, Java, C++, C, Objective C etc.