DEV Community

Discussion on: do you have any question about functional programming in javascript?

Collapse
 
vonheikemen profile image
Heiker

Somebody in a previous post ask me some fundamental questions (like what is it, why, that sort of deal), this was my answer.

I got you fam.

Let me start by saying that functional programming is a paradigm, a way of modeling the world. In other words, it's a way of solving problems.

What is a point of functional programming

Solving problems. But I guess you want a more specific answer. I can tell you that a lot effort and patterns are there just to make things predictable. Predictable software is good.

what problems it solves

All of them. Same as object oriented programming.

where to use it

Everywhere. If you want to identify an oportunity to use it that would be data transformation. Whenever you get to transform data you can use "pure functions."

why to use it

If it fits your mental model it makes you productive.

All that I have done is repeat what it's said in this talk.