Programming ParadigmWhat is a Paradigm? The dictionary defines a paradigm as an “example, model or pattern”. If we are touse a more specific definition of a paradigm; a paradigm is an idealized pattern of usage under which some agent can operate. From this definition a programmingparadigm is the pattern of thought that computer programmers can operate whenwriting a program. A programming paradigm is a way of thinking about problemsand their solutions, or an approach on how to use a computer to implement thosesolutions.For a programmer to solve a particular problem, he needs to know several things,namely:
•
Must have a clear picture of what the problem is supposed to do.
•
Must have an understanding of how the program should work to produce thedesired result.
•
Must understand how the program fits in its environmentIn order to understand what a program is supposed to do, how it should work, andknow the environment in which it should function, the programmer must form amental model of the problem. A mental model is like a simulation of an object or anabstract concept. It is used to predict the behavior of the problem under differentcircumstances. The purpose of a paradigm is for the programmer to have mentalmodels of a solution to the problem.A paradigm is not to be confused with the programming language. While theprogramming language provides the means of to program the computer, it does notnecessarily provide a mental model for the programmer. But there are instanceswhen a particular programming language seems to impose a programmingparadigm. For example, the C + + language being object-oriented approach insolving problems.Major Programming Paradigm There are several kinds of major programming paradigms; the most common arethe following:1.Imperative2.Logical3.Functional
Leave a Comment