Skip to content

Instantly share code, notes, and snippets.

@swapnilmishra
Created February 3, 2017 13:23
Show Gist options
  • Save swapnilmishra/99c99f6b49a1c6759674bedf319ef0fe to your computer and use it in GitHub Desktop.
Save swapnilmishra/99c99f6b49a1c6759674bedf319ef0fe to your computer and use it in GitHub Desktop.
Function programming
===================
Where Computations are modelled as evaluation of expressions
1. Functions are first class citizens - HOC, map
2. Functions don't produce side effects -
2.1 dont't access global variables, produce same return value given the same arguments
2.2 Uses immutable data structures
2.3 Memoization/Lazy evaluation - since with same arguments function return values are same they can be memoize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment