What is pure functional programming, and how it can improve our application testing? by Luca Molteni

preview_player
Показать описание
Pure functional programming is helping developers developing more robust and simpler programs, but it also helps them testing the behaviour of their application in a more predictable way. There are many different approaches to testing and verification of code, and we're constantly reconsidering the best approach to make our code solid, by leveraging concepts like referential transparency and purity to help us avoiding bugs. We explore the meaning of testing, by starting from the simple unit test, moving on to the property based testing and encoding our program invariants in types, with an introduction of some advanced type system concepts such as dependent types.
Рекомендации по теме
Комментарии
Автор

I think in the definition of pure functional programming the definition is not quite right. Even in his example at 12:09 he got the same output for the same inputs if one counts data held in the class instance as an input along with the parameters. His definition should talk about same outputs for the same parameter inputs...

williamdavidwallace