Declarative programming
Ingredients of Effective Functional JavaScript: Closures, Partial Application and Currying
Hugo Di Francesco

Interesting to note: In the example below, the declarative style uses the term ‘first’, which we typically associate with the numerical value 1 (which is “what” we want). In the imperative style the index of zero is used, which betrays an implementation concern (which is “how” we get it). In some respects the functional style is a form of abstraction, hiding the specific detail of the implementation.

Show your support

Clapping shows how much you appreciated Tracy-Gregory Gilmore’s story.