4 ms·
Do you have any examples that show that `just` is more efficient than lodash? It doesn't even have a `chunk` implementation, so it's hard to say that it's bette
by phailhaus 4y ago
Do you have any examples that show that `just` is more efficient than lodash? It doesn't even have a `chunk` implementation, so it's hard to say that it's better.
The "bloat" is the result of being battle tested. A slimmer implementation would cut out edge cases that I may or may not run into. If I use Lodash, I know I'm all set.
- TehShrike 4y agoThe point of the OP is that you don't need dedicated functions for most of these utilities, let alone hundreds of lines of code. 0 lines of code is preferable to battle-tested code. 10 lines of code is preferable to 1000 if you don't need them.
- phailhaus 4y agoThe point of the OP was that _.chunk is 140 lines, which is apparently too much. But `just` doesn't even support chunk(), so it's unclear what the advantage is. Sure, you can theoretically spend your time crafting your own implementation, but why? For the self-satisfaction? I'd rather just get on with my work.
- antifa 4y ago> The "bloat" is the result of being battle tested. Not always. Lodash's _.find is 5k. Why is something as simple as find so huge? It has a lot of magic. A lot of that magic provides safety though. I don't recommend dropping lodash unless you can start using typescript.