answersLogoWhite

0


Best Answer

These are all programming paradigms; they describe the "style" used to build the structure and elements of a computer program.

Imperative programming is typically contrasted with declarative programming because they are mutually-exclusive (you won't find any programming languages that are both imperative and declarative), in the same way that you won't find any languages that have both a structured paradigm and a non-structured paradigm. The main difference between the two is that imperative programming describes how a result is to be achieved without specifying what is to be achieved, whereas declarative programming describes what is to be achieved without specifying how it is to be achieved.

Another key difference is that imperative programming makes extensive use of changing-state and mutable data whereas declarative programming does not. Put simply, there are no assignment operations or side-effects in declarative programming.

Given that the object-oriented programming (OOP) paradigm is based upon objects with member methods that can mutate the object's attributes, OOP is based upon the imperative paradigm.

The functional programming paradigm is not to be confused with function calls which are based upon the procedural programming paradigm, which is itself based upon the structured programming paradigm, both of which are imperative. By "functional" we really mean mathematical functions, which are declarative. Although there are some imperative languages that do allow a type of functional programming style, at best they are a grey area because of the side-effects.

Logical programming is also declarative and is based on relations.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between Imperative object-oriented functional and logic programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between imperative and non-imperative programming languages?

Imperative languages focus on how the program should follow it's tasks, while non-imperative languages, functional or logical, tell the program what it needs to do, as opposed on how to do it.Imperative programming is programming which changes the computer's state and focuses on how a program is to perform. Non-imperative languages are predominantly declarative languages, where the programmer states what is to be performed without specifying how to achieve it.


What is software paradigm?

A software paradigm is a model for implementing software using principles of engineering. It encompasses software design and programming paradigms.


What does the word functional mean when applied to software development?

Functional programming when applied to software development alludes to using functions when writing computer programs. Functional programming has been popular in academic circles, but sees little use in industrial applications.


How is object oriented programming language easier to use than procerdural programming language?

object oriented programing helps better modeling the world as we humans see it, while functional and procedural programming is for the mathematicians P.O.V. harder to maintain the code, and for me , harder to understand imperative(functional) code over side effect code(OOP) OOP is more intuitive by the grasp of the model to the mind, as it stands to help better model the mind, though most developers i have see so far, can really make a good simulation for the world in order for the code to be more coherent. OOP is Object Oriented Programming P.O.V is Point Of View


List of not object-oriented programming languages?

Languages like C, Pascal, Basic do not use classes, polymorphism, etc, they promote functional style of programming. Languages like PHP, Perl, Python, Ruby provide you with the opportunity to choose whether you like to program using classes, in other words in the object-oriented way, or adhere to functional programming - depending on what is optimal for the project you are working on.

Related questions

When was Journal of Functional Programming created?

Journal of Functional Programming was created in 1991.


What is the difference between imperative and non-imperative programming languages?

Imperative languages focus on how the program should follow it's tasks, while non-imperative languages, functional or logical, tell the program what it needs to do, as opposed on how to do it.Imperative programming is programming which changes the computer's state and focuses on how a program is to perform. Non-imperative languages are predominantly declarative languages, where the programmer states what is to be performed without specifying how to achieve it.


What has the author Chris Reade written?

Chris Reade has written: 'Elements of functional programming' -- subject(s): Functional programming (Computer science) 'Elements of functional programming'


What is software paradigm?

A software paradigm is a model for implementing software using principles of engineering. It encompasses software design and programming paradigms.


What has the author Guy Cousineau written?

Guy Cousineau has written: 'The functional approach to programming' -- subject(s): Functional programming (Computer science)


What is a sentence for functional?

The functional button worked the factory very esily.


What has the author Andrea Asperti written?

Andrea Asperti has written: 'The optimal implementation of functional programming languages' -- subject(s): Functional programming languages


How do you summarize the projects done by the programmer?

A programmer writes source code that tells a computer what to do. Traditional programming is procedural, meaning it is imperative and stateful; it tells the computer sequential steps to execute. The problem with traditional programming is that it does not lend itself to parallel processing. To get around that, programming paradigms such as functional programming tell the computer what to do in more general terms, but not the order of execution. Several of the program's instructions can be executed simultaneously.


What is the basic difference between s7 200 and s7 300?

s7 200 not having capability of programming in functions and functional blocks where as s7 300 have..


What does the word functional mean when applied to software development?

Functional programming when applied to software development alludes to using functions when writing computer programs. Functional programming has been popular in academic circles, but sees little use in industrial applications.


Why is the programming language Haskell recommended?

The programming language Haskell is recommended because it is a product of many years of research. It is a very advanced and functional programming language.


How is object oriented programming language easier to use than procerdural programming language?

object oriented programing helps better modeling the world as we humans see it, while functional and procedural programming is for the mathematicians P.O.V. harder to maintain the code, and for me , harder to understand imperative(functional) code over side effect code(OOP) OOP is more intuitive by the grasp of the model to the mind, as it stands to help better model the mind, though most developers i have see so far, can really make a good simulation for the world in order for the code to be more coherent. OOP is Object Oriented Programming P.O.V is Point Of View