How to think in Functional programming paradigm?

I come from OOP background. I would like to how to think and write in FP paradigm?And when you are learning FP how do you set your mind this how we should thinking coding a program in FP and this how things work in FP.

Anton Rich's photo

Think of it as just building a building out of bricks. Where a brick is just a function and you compose your software out of those smaller functions. It's that simple.

Aldinei Bastos (Pinei)'s photo

I like the "Composing Software" post series by Eric Elliott. It presents some functional programming concepts very well explained through javascript language.

The name "software composition" implies in how to combine parts of testable software to form a reliable whole software.

The series has lead to a book as told in the post below, but the posts are still available for free.

Composing Software Series and Book