2. * FP Vs OOP
* Pure function
* Algebra Data type
* Monad
Table of contents
3. Is FP the future?
FP:
Immutable variable
Easy to reason & test
Parallelism
Less code -> makes us happy
…..
OO:
Mutable variable
Hard for reason & test
Hard for parallelism
Much more code -> dry me crazy
…..
What FP sucks?