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

Functional JavaScript

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Functional JavaScript

Introduction about what's and how to program functional javascript

Avatar for Medson Oliveira

Medson Oliveira

December 14, 2018

More Decks by Medson Oliveira

Other Decks in Programming

Transcript

  1. What makes a language have the possibility of being functional?

    • Immutability • First class functions • Recursion • Expression oriented programming
  2. Why Recursion? "Is not just much more elegant, but also

    the only way to iterate without invoking side-effects"
  3. JavaScript is not a pure functional language!!!!!1 • Doesn't have

    immutability • JavaScript is object based, everything is an object • Type system supeeeerrrrr dynamic
  4. Functional is not just a kind of programming language but

    also a way to program and organize your code
  5. What's needed for code in a functional way? • First

    class functions • Immutability • Recursion