DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Heiker
Heiker

Posted on

do you have any question about functional programming in javascript?

First of all, I'm not an expert on functional programming, I just like to write about that stuff.

Tell me what do you want to know. What is that thing you have read about but still don't understand? Maybe I can help, maybe someone else can, maybe I'm just looking for ideas for a future post (que tambiΓ©n puede ser en espaΓ±ol).

Top comments (1)

Collapse
 
vonheikemen profile image
Heiker Author

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.

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

β­οΈπŸŽ€ JavaScript Visualized: Promises & Async/Await

async await