Imperative vs. Declarative Programming
tylermcginnis.com
tylermcginnis.com
To me, imperative programming defines a series of steps for the computer to execute. Declarative programming describes the state of the world through a series of assertions.
Functional programming, OTOH, focuses on eliminating side effects – i.e., not altering global state.