3 ms·
So, in order to solve 1) and 2), we should return to what every other language does? That sounds like a design mistake... What do you mean by "URLs are compact
by jfkebwjsbx 6y ago
So, in order to solve 1) and 2), we should return to what every other language does? That sounds like a design mistake...
What do you mean by "URLs are compact"? How can a URL be compact compared to the same URL in some sort of dependencies file? Unless you use the dependency once, of course, which is rare.
URLs and explicit versions in the import also encourage you to use several versions of the same dependency in your code, which is a very bad idea.
NPM’s model of referencing packages from central repositories is bad for many reasons proven over the years. But referencing GitHub scripts and arbitrary URLs is even worse.
- julvo 6y agoURLs are compact as in a single string they specify everything you need to locate and use the dependency and you don't need any context, like a specific dependency manager (incl some sort of dependency file). I guess I mean compact as in self-contained, not necessarily short.
- jfkebwjsbx 6y agoThat’s fair and I’d agree it could be a useful property for scripts and even small apps if all code was trusted and all networks had perfectly availability. Sadly, that is not the case, which is why I don’t see the advantage of going "the browser way" for local scripts.