Difference between revisions of "Imperative programming"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Analogy: curriculum and syllabus)
(External links)
 
(2 intermediate revisions by one other user not shown)
Line 23: Line 23:
 
[[Syllabus]] is to declarative programming
 
[[Syllabus]] is to declarative programming
  
See [[Syllabus and curriculum]].
+
See [[Syllabus versus curriculum]].
  
 
== See also ==  
 
== See also ==  
Line 32: Line 32:
 
* [[Programming paradigm]]
 
* [[Programming paradigm]]
 
* [[Statement (computer science)]]
 
* [[Statement (computer science)]]
* [[Syllabus and curriculum]]
+
* [[Syllabus versus curriculum]]
  
 
== External links ==
 
== External links ==
  
 
* [https://en.wikipedia.org/wiki/Imperative_programming Imperative programming] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Imperative_programming Imperative programming] @ Wikipedia
 +
 +
[[Category:Computer programming]]
 +
[[Category:Computing]]
 +
[[Category:Programming languages]]
 +
[[Category:Software]]
 +
[[Category:Software development]]

Latest revision as of 04:35, 25 April 2016

In computer science, imperative programming is a programming paradigm.

Description

The imperative programming paradigm describes computation in terms of statements that change a program state.

In much the same way that the imperative mood in natural languages expresses commands to take action, imperative programs define sequences of commands for the computer to perform.

Imperative programming (necessary programming) is focused on describing how a program operates.

Declarative programming

The term is often used in contrast to declarative programming, which focuses on what the program should accomplish without prescribing how to do it in terms of sequences of actions to be taken.

Analogy: curriculum and syllabus

An analogy between programming paradigms and educational paradigms:

Curriculum is to imperative programming

as

Syllabus is to declarative programming

See Syllabus versus curriculum.

See also

External links