Skip to content

Declarative Imperative

Declarative

Declarative programming describe desired state

Analogy: "I want all the walls to be uniformly white"

Imperative

Imperative programming use statements to change program's state.

Analogy: "Take the paint roller, dip in the white paint, roll it across this surface, (…)"