Lesson 1 - 4/Nov/2015

Hi friends, as I told you I am starting this blog for Computer, IT Students and those who are interested in learning programming. Make sure you follow the blog from the beginning.

So today we are going to discuss something about the Programming Techniques.

What is Program?

A Program is a set of related instructions arranged in a proper sequence. A set of programs will make a Software or an Application.

Now let's try to understand what is program in brief.

We can relate any task that we perform usually to a program.
For example, making tea, going to school or office, road map to a particular place, every individual day to day task could be simulated as a Program.

Let's try to understand how? Let's take example of Road Map to a Temple.

Some day someone asked me way to Shriram Temple near my house. I told him how to go there.

1. First go straight. You will see big mango tree.
2. Take left from that tree and go straight again.
3. You will see a Big Shopping Center there. Besides that you will see a lane.
4. Enter that lane and about 100 meters ahead you will see the Shriram Temple on the right hand side of the road.

Now, if you see the above example, it is a set of instructions to reach the destination. Also it is a proper sequence those instructions. It is mandatory that the sequence of the instructions should be correct and related.

I must tell that person correctly how to reach the temple. If I miss any of the things or if I scramble the sequence of these instructions the person will not be able to find the destination.

Similar is the case of Program.

Now, let us try to understand what are the Programming Techniques?

Programming Techniques

Programming Techniques are the fundamentals of the programming. These are the techniques that are developed to fulfill different programming needs and to overcome the drawback of other  Programming Techniques.

Programming Techniques

a. Procedure Oriented Programming
b. Functional Programming
c. Script Programming
d. Object Oriented Programming
e. Object Based Programming

Let us try to understand these techniques in brief.

Procedure Oriented Programming

This programming technique mainly depends on the algorithm. Programs written using this programming technique are algorithm concentric. These programs follow the algorithm i.e. procedure. You have to follow the instructions as it is. These kind of programs are written for sequential purposes. However these programs are not very much suitable for writing real world applications.

Example :- C Programming

Functional Programming

In many applications we need some automated work to be done by the processor(microprocessor). The applications like AutoCAD or designing software like ProE and Catia are high end designing tools. A human can not draw circle or rectangle or any other shape with a very high precision, if the dimensions of the shapes are odd. In this case we can make use of the predefined functions in the software and draw the shapes of specified dimensions accurately. Such kind of languages are Functional Languages.

Example :- AutoLISP

Script Programming

Have you registered on any website for any newsletter or any particular service you need? If yes, you must have seen a form to fill up. That form has some fields like Name, Username, Password, Email Id, Mobile No, etc. If you enter mobile no less than 10 digits or if you enter E-mail id which does not contain @ symbol or if you do not enter the password as per the specification of the website you get a notification about correcting the fields. This kind of programming is called as Scripting.

Example :- JavaScript, VBScript

Object Oriented Programming

This programming technique is based on the real world concepts or it is designed to fulfill the real world programming needs. It is based on the concept of Classes, Objects and Object Oriented Principles, namely Abstraction, Encapsulation, Inheritance and Polymorphism. In this kind of programming a programmer  can create his/her own classes and objects. To fit into the concept you must follow all the OO Principles.

Example :- C++, Java, .Net platform languages like C#, J#, F#

Object Based Programming

In OO Programming it is must that all the OO Principles must be followed. However in Object Based programming only Abstraction and Encapsulation principles are taken care of and the rest of the two are not used. As a result of which programmer can not create his/her own classes and objects. Rather he/she has to stick to the in-built classes and objects.

Example :- Visual Basic 6.0

So that's all for today. See you on Saturday. This Saturday we will have a another Theory Blog as we have nothing to code right now.

Thank you so much for reading. Happy Coding!!!

===============================================================

Next Lesson :- 

C Language Basics

Date :- 7-Nov-2015

No comments:

Post a Comment