This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Makes JavaScript Fun Again(at least for me)
by Asep Bagja Priandanahttp://asep.co
Functional Programming?Imperative Programming?
what’s that?
Case Study: Pacman style multiplayer game
Technology Stack
Let’s write declarative JavaScript
Why am I using Ramda?
● I would like to use Clojure, but I could not● I’m a lazy programmer● Easy to do functional composition
Basic concept: Everything is a curry!
Function CompositionIt’s expressed as higher-order function
Sample 1: The Leaderboard
Sample 2: Room Creation
SanctuaryWrite safe JavaScript code without null checks.
npm install sanctuary
Maybe TypeInspired from Haskell’s Data.Maybe
data Maybe a = Just a | Nothing
Thank you and meet me at
Lambda Jakarta Meetuphttps://www.meetup.com/Lambda-Jakarta/
Froyo FrameworkRuko Barcelona, Blok E9RK, No. 1BSD City, Tangerang Selatan