3 ms·
Take a look at - https://github.com/sanctuary-js https://github.com/sanctuary-js - https://github.com/gcanti https://github.com/gcanti I think there's new li
by frfl 3y ago
Take a look at
- https://github.com/sanctuary-js https://github.com/sanctuary-js
- https://github.com/gcanti https://github.com/gcanti
I think there's new libraries now rather than the older Ramda and Lodash. The JS ecosystem just seems to move onto newer variants of things over time.
- jauntywundrkind 3y agoIt was never really my jam, but I used to follow the up-and-coming fantasy-land specs with great interest. It just seemed like a sharp dedicated community of folks trying to figure out better fp & algebraic stuff. I'm not sure who trailed off - in general I feel like there's much less connection in tech world, that the tech twitter and every other ultra-active tech channel has somewhat decayed. https://github.com/fantasyland/fantasy-land https://github.com/fantasyland/fantasy-land Thanks for the links. I know I've seen @gcanti's name a thousand times already, but had utterly forgotten fp-ts.
- crooked-v 3y agofp-ts is an interesting library that's totally useless to me because almost nothing has even the tiniest bit of documentation, so you just have to guess at what most of the functions actually do.
- dmix 3y agoRamda is 10x more accessible to newbie programmers than fp-ts. fp-ts is something that's theoretically superior and far more thought-out from an FP-perspective. But I wouldn't dare throw that on the lap of a junior programmer. They'd avoid using it anyway. Not sure why everyone is hating on Ramda, it's extremely easy to switch from Lodash to it and using a data-driven functional approach is very natural in JS/TS. You don't need to use currying at all when using Ramda, that's optional. There's also absolutely no requirement to go full FP to use it, nor does it need to underpin every function. Utility libraries are exactly that, they are basic helper functions when you don't want to write it yourself. Nor should you have to use ChatGPT every time you need array unions and safe hash merging or slightly more complex map functions or the 10's of other basic stdlib type functions that JS doesn't have.
- frfl 3y agoLack of documentation frustrated me too. I dont come from a pure FP or Haskell background, so all the type signatures and FP terms don't help at all. I only used like 2 or 3 categories of things from it since those were thing that i could actually understand. "Either" was the one I used the most I wish the docs had more examples or explanations
- bPspGiJT8Y 3y agoFrom their page: > Disclaimer. Teaching functional programming is out of scope of this project, so the documentation assumes you already know what FP is. Personally, and some might disagree here, but I think you simply shouldn't use fp-ts before you have a solid experience with "real" FP languages, because any usage of this library is quite messy on its own (after all, JS simply wasn't created for this) and it's easy to create even more mess and get frustrated about it later on. It's also IMO a bit useless to try and teach it because in order to get a good grasp of the abstractions you'd have to practice them yourself and see how they help your real code, and it's something that's much harder to do in JS than in a language which has you covered. You'd rather start with Haskell or PureScript if you wish to learn more.
- crooked-v 3y agoThere's a huge difference between "knowing what functional programming is" and "knowing what the specific functions in this utility project are supposed to do".