Programming Paradigms

Get Started. It's Free
or sign up with your email address
Rocket clouds
Programming Paradigms by Mind Map: Programming Paradigms

1. Procedural

1.1. The procedural paradigm emphasizes linear steps that provide the computer with instructions on how to solve a problem or carry out a task.

1.2. The type of problems best suited for the procedural approach are problems that can be solved by a step-by-step algorithm.

1.3. The advantages of procedural paradigms is that they produce programs that run quickly, and use the system resources efficiently. It is also very flexible and and powerful, which helps programmers apply it to different types of problems.

1.4. The disadvantages is that it does not fit with unstructured problems or very complex algorithms. Also, it has been known to view problems as a series of steps when a visualization would be a better approach.

2. Object-oriented

2.1. Object-oriented (OO) paradigms formulate programs as a serious of objects and methods that interact to perform a specific task.

2.2. The object-oriented paradigm can be applied to a wide range of programming problems. If the problem can be envisioned as a set of objects that pass messages then the problem is suitable for the OO paradigm.

2.3. The advantages are programmers can visualize the solutions to problems more easily, and can increase a programmer's efficiency because encapsulation allows objects to be adapted and reused in a variety of different programs.

2.4. The disadvantages of using object-oriented programs is that they tend to require more memory, and runtime efficiency.

3. Declarative

3.1. Declarative paradigm focuses on the use of facts and rules to describe a problem.

3.2. Declarative programming languages are best suited for problems that pertain to words and concepts rather than numbers.

3.3. The advantage is that it offers a highly effective programming environment for problems that involve words, concepts, and complex logic.

3.4. The disadvantage is that it provides minimal input and output capabilities. Also, the declarative language usually has a poor performance on today's personal computer architecture.

4. Functional

4.1. This paradigm emphasizes the evaluation of expressions called functions.

4.2. An advantage is that it is possible to employ a functional style of programming in languages that are not traditionally considered functional languages.

4.3. A disadvantage is that functional programming languages have been perceived as less efficient in their use of CPU and memory rather than imperative languages such as C and Pascal.

4.4. Functional paradigms are designed for programs that handle large matrices and multidimensional databases, which optimize the speed of the programs.

5. Event-driven

5.1. This paradigm focuses on selecting user interface elements and defining event-handling routines that are triggered by various mouse or keyboard activities. The programmer is never required to deal with the program sequence because it automatically combines the user interface elements into a file that becomes the final computer program.

5.2. The advantage of the event-driven paradigm is that it can significantly reduce development time and simplify the entire programming process.