...

/

Comparing Declarative and Imperative Programming

Comparing Declarative and Imperative Programming

Understand how to write code in the declarative style.

We'll cover the following...

Imperative vs. Declarative programming

Imperative programming focuses on how to solve a problem, describing each step as actions.

Functional programming, by contrast, is declarative. Declarative programming focuses on what is necessary to solve a problem, describing the data flow. Declarative programming usually generates less code than imperative programming. Less code means fewer things to write, more ...