Hacker News new | ask | show | jobs
by cjbprime 2559 days ago
Usually the motivation is that the federated package names are much longer than the centralized short package names.
2 comments

Eliminating short names as a value hopefully will encourage more semantic names instead of cute words that are entirely non-descriptive.
Much longer is, I guess, a matter of taste. For example the package name "go.uber.org/zap" [0] looks quite short to me.

[0]: https://godoc.org/go.uber.org/zap

Not to mention that short names get depleted eventually and one needs to use longer names then anyway (see npm namespaces).

Or even end up with low quality generic defaults for things like routing in react because someone got the default name of say the routing library.
Presumably, if you really want short names, a local hosts like config with aliased names would do the job just fine. This has the added benefit that everyone can have their own aliases.
No, I think the attraction to centralization is not only that it can provide short names, but that it can provide short names that everyone agrees on the meaning of.
Which is a fascinating echo of the arguments between proponents of AOL Keywords and DNS.