News for hackers. Stuff that matters.
Re:Underscore and Lodash Merge Thread by fokinsean on Thursday May 21, 2015 @01:12PM (#9584016)
> Lodash is currently > 12k lines of code, and Underscore is 1.5k.

Never knew that before. Does Lodash have more features than Underscore? I never got too heavy into using either but I always thought of them as essentially being interchangeable libraries.

Re:Underscore and Lodash Merge Thread by Derander on Thursday May 21, 2015 @01:17PM (#9584035)
Lodash has many features that underscore does not have. Also, I am told that Lodash has been implemented in such a way that functions are largely independent of each other so that you can build a custom lodash package that only includes the subset that you use.
Re:Underscore and Lodash Merge Thread by tracker1 on Thursday May 21, 2015 @01:56PM (#9584316)
In practice, I'm not sure how truly valuable this is... it's far easier to just accept it as a whole, and with min/merge versions in the browser it's not so big at all.

It's not a macro framework like jQuery... the kitchen sink isn't in there... though, I do think that probably the string templating could/should become a sub-module... the rest belong together more.

Re:Underscore and Lodash Merge Thread by ben336 on Thursday May 21, 2015 @02:22PM (#9584482)
Heres a breakdown of the differences between the two : http://benmccormick.org/2014/11/12/underscore-vs-lodash/

A few months old but should still be reasonably accurate

Re:Underscore and Lodash Merge Thread by Klathmon on Thursday May 21, 2015 @04:20PM (#9585166)
It's both terrifying and exciting that you have to specifically point out when something is as little as "a few months old" when it comes to JS frameworks/libraries.
Re:Underscore and Lodash Merge Thread by thejosh on Thursday May 21, 2015 @07:09PM (#9585898)
6 months is a very long time in terms of development cycle.
Re:Underscore and Lodash Merge Thread by Cthulhu_ on Thursday May 21, 2015 @06:06PM (#9585664)
One of the core differences between Lodash - iirc - is that Underscore will just use a browser's built-in version of functions like .map and such, while Lodash often implements them themselves - circumventing JS spec compliance, often with significantly better performance than native implementations.
Re:Underscore and Lodash Merge Thread by Vekz on Thursday May 21, 2015 @07:46PM (#9585992)
> circumventing JS spec compliance, often with significantly better performance than native implementations.

Yes Lodash has some interesting 'better than native' optimizations that utilize JIT compilation

Re:Underscore and Lodash Merge Thread by mmgutz on Thursday May 21, 2015 @01:25PM (#9584094)
In addition to other comments, optimization sometimes means inlining code. Lodash has always been performance first.
Re:Underscore and Lodash Merge Thread by jdd on Thursday May 21, 2015 @07:15PM (#9585915)
lodash is consistency and compatibility first.
Re:Underscore and Lodash Merge Thread by betenoire on Thursday May 21, 2015 @01:18PM (#9584041)
The comments mentions this a few times: the codebases are different styles and the size difference apparently has a lot to do with documentation.