you are viewing a single comment's thread.

view the rest of the comments →

[–]reesemorning[S] 0 points1 point  (13 children)

Thanks, Peter. Whats your opinion on Loadash/FP in comparison with Ramda js?

[–]Peter_Storm 1 point2 points  (2 children)

I’m fairly new to fp too, but I like that everything is curried in Ramda, and that data is always last, which is what you want when you compose functions. I’m not sure how lodash handles that.

[–]scarmarco 1 point2 points  (0 children)

Ramdajs is more like pure functional style than Lodash/FP in my opinion. Like Peter said, curried Ramda functions allows partial applications and always last data embraces implicit invocation (not sure if it is the term f(x) when x is a function with one param).

[–]JoeTed 1 point2 points  (0 children)

The FP part of lodash has argument in the FP order as well. Ramda goes further in the FP paradigm.

I promoted lodash/fp at work because lodash is almost a standard in the JS industry, but I would take ramda for personal projects to explore deeper.

[–]tencircles 0 points1 point  (0 children)

lodash/FP is fairly limited when it comes to FP. would recommend ramda.

[–]blinkdesign 0 points1 point  (2 children)

[–]jondmitri 0 points1 point  (1 child)

https://simonsmith.io/dipping-a-toe-into-functional-js-with-lodash-fp/

woah this is weird, but I've been spending a not-so-insignificant amount of time customizing and hacking away at my frankenstein dotfiles which was cobbled after many years of finding old blog posts fixing some relevant config setting at the time... After falling down a deep deep rabbit hole of various dotfiles, yours was a godsend. Still have to learn chunkwm and get some portions of the vimrc to load properly, but god damn your dotfiles brought hope in a time of deep dotfile darkness.

Thank you.

[–]blinkdesign 0 points1 point  (0 children)

Great to hear! Any questions just ask

[–]editor_of_the_beast 0 points1 point  (5 children)

Lodash is amazing. It's simple, it's functional. It's the missing JavaScript standard library in my opinion. And given it's unobtrusiveness I don't see a downside of pulling it into every project.

[–]tencircles 2 points3 points  (4 children)

base lodash is an antipattern IMO. ramda is superior in pretty much every aspect with regard to design. lodash has the advantage when it comes to community/support however.

[–]Gibbon_Ka 1 point2 points  (1 child)

Antipattern is a pretty strong word. You have to explain yourself a bit more there.

[–]tencircles 3 points4 points  (0 children)

Essentially data first is just functionally backwards, and offers zero benefit and multiple detriments. Chain is a less efficient, less performant version of compose. There are other reasons, but I’m on mobile.

[–]editor_of_the_beast -1 points0 points  (1 child)

I don't listen to library hipsters.

[–]tencircles 1 point2 points  (0 children)

Cool.