Friday, August 26, 2016

Functional programming

  • Why:
    • General sateless tendency: cloud & scaling
    • No locks (multi-thread)
    • Easy reading
    • Easy testing
    • JavaScript boom?
  • How: 
    • Pure functions (no side-effects)
    • Immutability
    • Composition (not inheritance)
    • Deferred execution
    • Currying
    •  ...
  • Related: funcional reactive programming.

Why functional programming matters:
https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf

FP Languages
Hybrid Languages
  • Scala (JVM)
  • F#

No comments:

Post a Comment