1 comment

[ 2.6 ms ] story [ 11.3 ms ] thread
Well, that's not quite how I think of these constructs.

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.