Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Functional & Declarative Programming

OlivierJM
October 27, 2018

Functional & Declarative Programming

An Introduction to Reactjs with the fundamentals of functional programming and taking advantages of react's declarative approach.

OlivierJM

October 27, 2018
Tweet

More Decks by OlivierJM

Other Decks in Programming

Transcript

  1. ❖ UAB ❖ Bongohive ❖ Community lead ❖ OpenSource ❖

    Javascript Olivier JM Software Developer @olivierjm
  2. Why Functional Programming in Javascript ? The fact that functions

    are first class in Javascript makes Javascript a power house of functional programming.
  3. Benefits ❖ Predictable Code ❖ Immutability ❖ No Side Effects

    ❖ Declarative Approach ❖ Easy Testing ❖ Readability ❖ Etc ...
  4. If you can call a function twice and get different

    results then that function is impure. FP
  5. Declarativity. Declarative programming is a programming paradigm in which the

    programmer defines what needs to be accomplished by the program without defining how it needs to be implemented.