Sunday, 30 April 2017

Functional programming:
It introduces a new style in programming. This is not a property of the language but this is the way to use the language.
The languages are different in degree of support of this style. Java 8 added some features to better support the functional programming such as lambda expression, stream and ...
This style of thinking and programming brings more expressive, easier to write, less error prone and easier parallelism, and makes the code more concise. It allows to the programmer to focus more on what he want instead of describing how to achieve what he wants. In traditional programming style the programmer enters in details of the steps to be passed to do something, but in functional programming there is a higher degree of abstraction that prevents the code to be too verbose.