TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

In Defense of Hyper Modular JavaScript

11 pointsby bitmilitiaabout 9 years ago

3 comments

ejcxabout 9 years ago
&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 未加载
zalgoabout 9 years ago
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 未加载
foobar1234about 9 years ago
&quot;It’s not about size, it’s about functionality&quot; - i&#x27;ve been saying this to my girlfriend for years!