What Is Programming
What is Programing?
Computer programming is the process of designing, writing a code and building an executable computer program for accomplishing a specific computing task.What is a Programming Paradigm?
Programing paradigm is the way of writing programing codes. Simply its a classification of codes based on there features.Different types of programing Paradigms
Imperative
Imperative programming paradigm of computer in which describe a sequence of steps that change the state of the computer. It describes the how a program should accomplish a certain task.
- Sequence of statement.
- Order of execution of statement is very important.
- They contain state.
- They can change state.
- They represent state with the data field.
- Existence of loops and sections.
Declarative
Declarative programing paradigm in which the programmer define what to accomplish it without describing how to accomplish it.This express the logic of computation without describing its control flow.
- Non existent of state change
- Order of execution is less important
- Function calls including recursion.
Logical
Logic programing is type of programing paradigm which is largely based on formal logic.
Any program written in a logic programming language is a set of sentences in logical form.
Functional
It is declarative programing style with pure mathematical functions. It mainly focus on what to solve. This uses mainly expressions instead of statements.
- Referential transparency (Always returns the same output for the given input).
- Order of execution is not in a specific order.
- Implements solutions in parallel execution.
- Execution has no side effects (No side effects means no change or modification of state outside the local environment).
-
Procedural
It is a sub type of imperative programing style. This is based upon concept of procedures (subroutines or functions). This mainly uses statements.
- The output of a routine does not always have a direct relation with the input.
- Everything is done according to a specific order.
- Execution may have side effects.
- Trends to emphasize implementing solutions in a linear fashion.
Object Oriented
It is programming paradigm based on object which includes both data and methods.
And this programming paradigm has certain advantages like modularity and re-usability.
- This Bottom to top approach in programing design.
- Programs organized around objects and grouped in classes.
- Focus on data with methods to operate upon objects data.
- Interaction between objects through functions.
- The new classes can be creates using the features of a existing class through inheritance.
Event driven
- There is specific coded event for a action called as trigger functions.
- And there are event handler section of code structure to identify the same type of actions but a user expectation is different.
- This type of programming may use the real time settings and variables that would be generally use according to schedule.
- Event driven programmings mainly use the user interfaces to graphical representation of buttons.
Comments
Post a Comment