TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

“Discuss latest changes to master before releasing”

59 点作者 ChrisGaudreau大约 10 年前

7 条评论

ggreer大约 10 年前
If you find yourself annoyed by some aspects of Underscore, you might want to check out Lodash[1]. Lodash&#x27;s API is a superset of Underscore, though you can create custom builds with only the parts you need. In general, Lodash performs better and has fewer bugs than Underscore. Unlike Underscore, Lodash has 100% test coverage. Also, Lodash has some handy things like _.cloneDeep(), and semantic versioning. That means your package.json can have &quot;lodash&quot;: &quot;3.x&quot; in its dependencies without worrying about breakage.<p>For a more in-depth discussion of the differences between Lodash and Underscore, I recommend Ben McCormick&#x27;s <i>Underscore vs Lo-Dash</i>[2].<p>1. <a href="https://lodash.com/" rel="nofollow">https:&#x2F;&#x2F;lodash.com&#x2F;</a><p>2. <a href="http://benmccormick.org/2014/11/12/underscore-vs-lodash/" rel="nofollow">http:&#x2F;&#x2F;benmccormick.org&#x2F;2014&#x2F;11&#x2F;12&#x2F;underscore-vs-lodash&#x2F;</a>
评论 #9078715 未加载
评论 #9078590 未加载
评论 #9078572 未加载
javajosh大约 10 年前
I like Ramda[1] better than both underscore or lodash because of it&#x27;s argument ordering (function first) and auto-currying[2]. It&#x27;s 7kb minified and gzipped.<p>[1] <a href="http://ramdajs.com/" rel="nofollow">http:&#x2F;&#x2F;ramdajs.com&#x2F;</a><p>[2] <a href="https://buzzdecafe.github.io/code/2014/05/16/introducing-ramda/" rel="nofollow">https:&#x2F;&#x2F;buzzdecafe.github.io&#x2F;code&#x2F;2014&#x2F;05&#x2F;16&#x2F;introducing-ram...</a>
评论 #9078824 未加载
评论 #9078899 未加载
untog大约 10 年前
To be fair: Underscore doesn&#x27;t follow semver, so breaking changes between versions should be expected. This thread just seems like an excuse to pile on jashkenas and promote lodash.
评论 #9080177 未加载
brandoncarl大约 10 年前
Via the Lodash CLI you can &quot;lodash underscore&quot;. This results in 6.7kb gzipped. In my experience, jdalton is a very solid coder and the lodash package is excellently maintained.
logicallee大约 10 年前
I don&#x27;t follow Underscore but whoever wrote this title (currently &quot;Underscore 1.8 makes last minute breaking changes to master without discussion&quot;) must really have an axe to grind, and it seems inappropriate for HN. Doesn&#x27;t really set the tone for any constructive discussion.
评论 #9078935 未加载
评论 #9078831 未加载
评论 #9078761 未加载
christopherscot大约 10 年前
what idiot is using Underscore at this point?
omouse大约 10 年前
Welcome to JavaScript.