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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

NPM and the future of JavaScript

51 点作者 dberhane超过 6 年前

15 条评论

chatmasta超过 6 年前
What an arrogant presentation...<p>1) “npm is the best at x, y, z” with no data to back the assertion or attempt to address the many counter arguments<p>2) we just released a bunch of brand new security code! So it must be secure!<p>3) everyone is using npm, that must mean it’s the best, and not that technical debt is forcing the choice on everyone<p>4) everybody in the audience stand up and sit down when I say<p>Jeez
评论 #18203394 未加载
评论 #18204322 未加载
评论 #18203267 未加载
royjacobs超过 6 年前
After the Nth time in which npm failed to install correctly (incorrect package resolution and even an occasional stack overflow exception) we moved to yarn and never looked back.<p>It&#x27;s amazing to me that npm, which has been around for quite a while, still manages to be so broken. I normally try to give developers the benefit of the doubt, but i really believe the frontend world is worse off because of npm.
0xfeba超过 6 年前
NPM and Yarn have made a nightmare out of our project. We have 50 direct dependencies. The lockfiles only lock your direct dependencies, any transitive ones can change at any moment, making our CI builds fail when something works locally. And they don&#x27;t actually check integrity -- that v1.5.0 of ABC is the same as v1.5.0 from a month ago.<p>I saw Yarn added last month a hash of the (hopefully) source of the dependencies -- that&#x27;s what we need.<p>Despite using lockfiles, some transitive dependency changed and we decided it was best to upgrade the direct dependency, requiring a big refactor. The alternative was to fork the library and maintain it ourselves -- which I am refusing to do from this point on. We have about 10 forked 3rd party libraries. No more.<p>I feel like I spend 30% of my time just trying to upgrade&#x2F;maintain the current builds because some stupid loosely semver&#x27;d dependency changes, rather than writing new features.
评论 #18206451 未加载
评论 #18203615 未加载
评论 #18206784 未加载
valw超过 6 年前
&gt; The best framework is always the one with the most users.<p>What???
评论 #18203612 未加载
crooked-v超过 6 年前
The key things that got my team to switch to Yarn were (a) the lockfiles didn&#x27;t keep changing formats when running installs and (b) workspaces for monorepos.
zallarak超过 6 年前
I have terrible memories of npm install on the caltrain, with tethered wifi.
Hansi超过 6 年前
I&#x27;m a bit of a outsider looking in being a manager that doesn&#x27;t code much anymore but why the dislike of Typescript? I really don&#x27;t see the downside. Transpiling doesn&#x27;t make it 1:1 anymore but all devs seem to praise it.
评论 #18204913 未加载
tashoecraft超过 6 年前
Slightly misleading to say Angular is in decline when you group Angular 1 and 2+ together.
评论 #18203520 未加载
评论 #18203332 未加载
评论 #18203522 未加载
评论 #18203213 未加载
评论 #18203223 未加载
评论 #18203690 未加载
bitwize超过 6 年前
&quot;JavaScript is the most important programming language in the world.&quot;<p>Either that statement is false, in which case the JS community really is that insular and arrogant -- or it&#x27;s true, which is probably even worse.<p>Either way, this assertion scares me.
评论 #18203229 未加载
评论 #18203134 未加载
评论 #18203067 未加载
评论 #18203286 未加载
magicbuzz超过 6 年前
“Transpiling is a code smell” - what is the thinking behind this statement?
k__超过 6 年前
lol, what are the Yarn devs saying about this? :D
评论 #18204338 未加载
wishinghand超过 6 年前
I can&#x27;t tell from the slides, are the ill-advised recommendations a tongue-in-cheek title or are they serious?
评论 #18202895 未加载
ravenstine超过 6 年前
It&#x27;s this kind of Kool-aid swallowing of React that has kept me away from it. I don&#x27;t care how great of a tool it is.<p>To paraphrase the last 8th of the presentation:<p>- Use React.<p>- If we all just use React, React will live <i>forever</i>.<p>- React is better because users.<p>So much of the rhetoric around React is disturbingly cultish.
techntoke超过 6 年前
JavaScript appears to have been primarily created to spy on users. I don&#x27;t need every website to take over the presentation of content. Information shouldn&#x27;t be coupled with design to limit choice. I&#x27;m ready for a new browser that uses a more modern markup format.
exitcode00超过 6 年前
Javascript is a cancer. But I guess if you can&#x27;t beat it, might as well learn to love the cancer?
评论 #18204390 未加载