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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

In Defense of Hyper Modular JavaScript

11 点作者 bitmilitia大约 9 年前

3 条评论

ejcx大约 9 年前
&gt; Those who argue that having a dependency like left-pad adds risk to their project are essentially arguing against having any external npm dependancies in their project.<p>No they absolutely are not. Having a few dependencies is something that almost all software has.<p>Depending on left pad means more than just &quot;I&#x27;ll have problems if it is removed&quot;.<p>It means you&#x27;ll have problems if it is modified. It means you&#x27;ll have problems if it has a vulnerability that needs to be fixed. It means you&#x27;ll have problems in tons of different circumstances. Depending on things willy-nilly is a bad practice.<p>Trusting left pad written by god knows who is a little different than trusting something like jquery that has been around for 15 years.
评论 #11390312 未加载
zalgo大约 9 年前
being sensible is key.<p>even though it presents a good argument for &quot;hyper modular&quot; packages, you&#x27;ll never see me write a one :)
评论 #11389558 未加载
foobar1234大约 9 年前
&quot;It’s not about size, it’s about functionality&quot; - i&#x27;ve been saying this to my girlfriend for years!