Closed junming403 closed 5 years ago
Need to update with more info (key points etc.) Upload slides too.
Functional programming is always considered abstract and hard to understand while today I hope to give you a new sense of what is functional programming.
Even though you do not want to be a functional programmer, there are a lot of good practices and concepts you can learn from functional programming.
Functional programming think in terms of the mapping relation between data instead of how to mutating the data.
Functional programming require most of the functions to have no side effects.
Functions with no side effects implies referential transparency.
Function with no side effects are easier to test.
Implementing programs with a pure core and a thin layer on the outside that handles side effects makes our program more testable and more intuitive.
Referential transparency helps us reasoning and debug our program.
Know: functional programming is not hard as you heard, there are a lot of good practices worth learning even though you do not want to be a functional programmer.
Believe: functional programming is worth learning.
Do/Call to Action: start learning/ exploring functional programming.
Why functional programming and why it matters?