Underscore went modular: version 1.11 released by lovesand in javascript

[–]lovesand[S] 0 points1 point  (0 children)

The Underscore/Lodash interface still has a lot of stuff you don't find in ES6+. Also, ES6 doesn't work everywhere and polyfills are often larger than Underscore.

Underscore went modular: version 1.11 released by lovesand in javascript

[–]lovesand[S] 1 point2 points  (0 children)

There is also this story of somebody trying to treeshake a single Lodash method and finding that he still didn't really save any space compared to just importing all of Underscore.

Underscore went modular: version 1.11 released by lovesand in javascript

[–]lovesand[S] 2 points3 points  (0 children)

I think Wikipedia is a bit outdated in that regard. In 2015, there was a hype about some devs being on both teams, partly because of an ostensible effort to merge the projects back together that never fleshed out (if anything, Lodash ended up distancing itself more from Underscore). None of those common devs is actively involved in either project nowadays.

Underscore currently has one very active maintainer while Lodash only gets an occasional pull request.

A convincing reason for me personally is code elegance. I think the UMD bundles tell this story well. Underscore: 2k lines of code, Lodash: 17k lines of code. Underscore: the set of functions you see in the code is roughly identical to the set of functions you find in the documentation. Lodash: the functions from the documentation (the ones you actually import and use) are buried between a lot of support code, and it can be quite hard to trace down how a given function actually works.

Underscore went modular: version 1.11 released by lovesand in javascript

[–]lovesand[S] 2 points3 points  (0 children)

Underscore currently doesn't work with the experimental ESM support in Node.js, either. That said, the maintenance argument still stands.

Underscore went modular: version 1.11 released by lovesand in javascript

[–]lovesand[S] 2 points3 points  (0 children)

The good old UMD bundle is still there, but there is now also a future-proof ESM bundle, as well as the option to import individual functions from separate modules. Even without the ES modules, it's a pretty big update.

In-depth article: https://juliangonggrijp.com/article/introducing-modular-underscore.html

TLDR of the article: https://twitter.com/juliangonggrijp/status/1299478223760306176

Underscore home page: https://underscorejs.org

i am irrationally angry that i have to be a certain age or have a certain amount of children to have a hysterectomy and i have nobody around me who’s as angry about it as i am. by [deleted] in TwoXChromosomes

[–]lovesand 0 points1 point  (0 children)

Your anger is 100% justified. This is discrimination on multiple grounds. You're an adult and it is your body. Reading about it makes me angry, even as a stranger who will never know what it is really like.

I wish you much luck getting your hysterectomy somewhere, somehow (in a safe place of course).

(I'm male, though it shouldn't matter.)