Thursday, 15 May 2014

Computer Programming!!!


What is Programming?
         
 You’re probably expecting something complex and technical in the answer of this question unfortunately you’re not going to get one. It is quite easy to describe Programming.
            Programming is actually breaking bigger tasks into smaller steps and completing it”
            It’s the simplest answer to this question.

Example:
            Suppose you’re given task to arrange a party. What are you going to do?
You’ve two options:
1. Do all the arrangements at the same time.
2. Work step by step.
1st one is obviously a bad idea. So let’s move ahead with step 2. First you’ll need to:
·         Pick out a good date for party.
·         Look out for a venue.
·         Hire a good caterer.
·         Hire a good DJ or band.
·         Buy and distribute Invitation cards.
Well this looks pretty easy rather than beating up your head with doing multiple tasks at one time. This is known as programming and using same methodology to make computer programs is known as computer programming.

Computer Programming
Let’s swim in the sea of computer programming. For Computer programming you need to learn or master (better choice) a programming language. A Programming language is a language used to make computer programs. There are different programming languages with different properties.


Generally there are two types of programming languages:
1.    Structured programming.
2.    Object Oriented Programming.
1. Structured Programming:
                  Structured programming is a type of a programming that is done without any classes. Means all the work is done in one main class, which is a bad choice in the present era.
Languages: C, GW BASIC.
2. Object Oriented Programming:
                 
Object Oriented Programming usually called OOP is a programming methodology in which programmers use real life objects as their classes in a program. There can be more than one class in a program (which is quite useful if you want to change anything in one class you can just open the class and edit the code but in structured programming you have to search the line of code in the whole program).
Languages: C#, Java, C++.
      Now we’ve talked about methods and classes but you don’t know anything about it so let’s discuss it.
Methods:
    
Methods are actually classes under classes which has property of being used again and again whenever programmer needs. In other words we write method with some code and whenever we need to use that code instead of writing code again we just call the method.

Classes:
    
Classes are objects of program that contain different properties and different identities. In OOP Classes are actual objects that are directly related with the program to perform different operations.
More ? :
  
Well Programming is a vast field, It needs proper understanding that cannot happen in one day. Everyone needs time to master it. Here are some java books with basics, Go through them.
     Barry Burd(Beginning Programming with java for dummies 3rd ed.)
      O’Rielly(Head First java 2nd ed.)
      Y.Daniel Liang(Introduction to java programming 8th ed.)


No comments:

Post a Comment