3 ms·
> Backbone's only hard dependency is either Underscore.js ( >= 1.4.3) or Lo-Dash First I'm hearing of Lo-Dash. How long has this been in the Backbone.org docs?
by crescentfresh 14y ago
> Backbone's only hard dependency is either Underscore.js ( >= 1.4.3) or Lo-Dash
First I'm hearing of Lo-Dash. How long has this been in the Backbone.org docs?
Appears there was a fair bit of tension in it's dev history. Eg: https://github.com/documentcloud/underscore/commit/4e4bc194c0a0e06aa8f7633695ad10030d871a2b https://github.com/documentcloud/underscore/commit/4e4bc194c...
- ezequiel-garzon 14y agoBackbone begot Spine, Underscore begot Lo-Dash... What about CoffeeScript? TeaMacro? Jeremy must be having a blast.
- joshuacc 14y agoCoffeeScript begat Coco. And Coco begat LiveScript.
- jashkenas 14y agoLo-Dash is a mostly-compatible rewrite of Underscore, with a fascinatingly different approach to the codebase. Instead of using little functions that are implemented in terms of each other, it relies on code generation to create (eval) explicit large and optimized versions of many of the core iteration functions at load time, in your browser: https://github.com/bestiejs/lodash/blob/master/lodash.js#L357-L480 https://github.com/bestiejs/lodash/blob/master/lodash.js#L35... It's a very fun bit of code, and a great example of how differently a fork can be implemented while preserving more or less the same API. There's never been any tension about the project itself -- just about some of the "marketing" methods used to pitch it in the past. That said, Lo-Dash's main developer is contributing to Underscore directly as well these days, so it's all copacetic.