T
T
Top_Pudge2017-08-23 17:42:22
JavaScript
Top_Pudge, 2017-08-23 17:42:22

Where to start in functional programming in js?

I have been reading about FP for a long time, but basically these are articles explaining the concepts of FP, there were no specifics at all. I want to try. As far as I understand, there are several popular libraries (underscore, lodash, ramda) and there is also the elm language. I also realized that ramda is the closest library to FP, while others are something like general purpose. In general, there was a feeling by the names of the functions that half of them are already in the browser.
Tell me which library is better to start with. Or maybe Elm? Another problem is that I usually read the documentation with the google translate plugin and understand the meaning normally, but it doesn’t work out for me with fp (I tried to read the ramda and underscore documentation). Maybe faced with translations of documentation or their similarities?
As far as I understand, fp is mainly used in conjunction with react.js I am not familiar with react, is it used with vue.js ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Kolesnichenko, 2017-08-23
@Top_Pudge

I also realized that ramda is the closest library to FP, while others are something like general purpose.

This is true. In Ramda, all functions are curried out of the box, arguments are passed in an order convenient for the functional style, functions do not mutate data, but create new copies.
Definitely with Ramda.
If you already know JS, then it will be easier to start with Ramda. Although Elm is tougher in terms of following the rules of the functional approach.
Learn English. Without it, learning programming is in any case difficult.
Also, must have for FP in JS - Fantasy Land (you can add more Static Land ). But that's the next level after you've mastered the basics of FP and read a couple of articles about monads, functors, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question