remeda
generator
remeda | generator | |
---|---|---|
10 | 5 | |
3,922 | 4 | |
3.0% | - | |
9.3 | 7.7 | |
4 days ago | 6 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
remeda
-
Ramda: A practical functional library for JavaScript programmers
Personally I just don't think Ramda fits really well with JavaScript's mutable and often object-oriented nature. It goes against the grain too much for my taste, and it doesn't work very well with Typescript.
In a professional setting I will probably always reach for Lodash due to it's maturity and mindshare. Personally, though, I really prefer Remeda (https://github.com/remeda/remeda) as a pragmatic and flexible API.
- Functional Programming in JavaScript with Ramda.js
-
Implementing the Pipe Operator in TypeScript
Remeda's pipe implementation
-
A Typescript-first alternative to Lodash/Underscore
I saw this trending a few days ago: https://github.com/remeda/remeda
-
Ramda and Typescript Issues
Also heard that Remeda is better for TS.
- The first data utility library designed especially for TypeScript
-
How to create a Widget Grid using React
Remeda - a utility library that provides a set of functions that will help us deal with strings, objects and arrays
- A generically typed pipe function in TypeScript
-
Avoiding legacy systems
The good news is: Not all is lost. The messages are still there if you take a look at the commits of the PR. It's just a little harder to backtrack. Here is one example of a commit I made that has tons of information (even with a link!) that got squashed away.
generator
-
Ramda: A practical functional library for JavaScript programmers
I find straight forward, dedicated combinators much more readable and practical to use ie. for iterables (context where it makes a lot of sense) [0] example [1], runtime assertions (through refutations, which are much faster than combinators over assertions) [2], parser combinators for smallish grammars [3] etc.
In many cases vanilla/imperative js is more readable and terse, no need to bring functional fanaticism everywhere, just in places where it gives true benefits and in form that can be understood by peers.
Functional code can be beautiful and can also be unreadable/undebugable. Same with imperative code. It's great in js/ts you can pick approach where the problem is expressed more naturally and mix it at will.
[0] https://github.com/preludejs/generator
[1] https://observablehq.com/@mirek/project-euler
[2] https://github.com/preludejs/refute
[3] https://github.com/preludejs/parser
- Why Would Anyone Need JavaScript Generator Functions?
-
A pipe operator for JavaScript: introduction and use cases
You can type it, take a look at pipe and pipe1 in [0].
[0] https://github.com/preludejs/generator/tree/master/src
- Parser Combinators in Haskell
-
Loopless Code
Loops are great if your programming languages supports iterables/iterators/generators (also async generators) like in js/ts for example.
Especially generator-to-generator combinators ie. [0] give you terse, transducer expressiveness over computation on finite/infinite streams, arrays, etc. (all iterables). It's easy to compose them, jump into for loops if needed for arbitrary yielding (ie. yielding multiple items sometimes, skipping some, halting etc). `continue`, `break`, nesting, yield, yield from, normal code in for loops is very intuitive and terse creating pleasant, understandable code.
[0] https://github.com/preludejs/generator
What are some alternatives?
eslint-plugin-functional - ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
angstrom - Parser combinators built for speed and memory efficiency
ts-prune - Find unused exports in a typescript project. 🛀
assert-combinators - Functional assertion combinators.
ramda - :ram: Practical functional Javascript
ppipe - pipes values through functions, an alternative to using the proposed pipe operator ( |> ) for ES
async-utils - Async function utils
notion-sdk-js - Official Notion JavaScript Client
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
IxJS - The Interactive Extensions for JavaScript
tonal - A functional music theory library for Javascript
bitstream - Utilities for packing/unpacking fields in a bitstream