3 ms·
I've always found it to be a pretty sane scheme. What problems do you have with it?
by imron 11y ago
I've always found it to be a pretty sane scheme. What problems do you have with it?
- darkstar999 11y agoCoupling it to a TLD is arbitrary. Does Sandra own sandra.com? What if she doesn't have a website at all? It's kind of a silly convention.
- GFK_of_xmaspast 11y agoYou can get a free domain name without a lot of trouble.
- gcb0 11y agono you can't. at most you can borrow one.
- qopp 11y agoThis is uncommon, but in this case you can use your email address or github.io, etc.
- TeMPOraL 11y agoIt's more common than not to not have a domain. Most programmers I know don't have a personal domain they own, and not all code is written for work (most open-source code isn't, in particular).
- tokenizerrr 11y agoSo put your open-source code on github and use something like <githubUserName>.github.io. And if it's for work you use your work groupId. If it's personal but not public, who cares what groupId you use? Just pick something. What's the problem?
- TeMPOraL 11y agoAnd when you move your code off github or change your username, are you supposed to change the package name too? If not, or if we're going to put whatever we want in there anyway, then why hold to the idea it must correspond to a domain name anyway?
- ajmurmann 11y agoI have a bunch of domains, but none of them feel appropriate to use for this. So I might get one just do that I can have a proper package name. Now I have to keep that domain forever. I don't see how this is any different than namespacing by my home address.
- Cheezykins 11y agoIt feels to me like it's tying your code to something ephemeral. If you're going to do that you may as well make it something uniquely ephemeral. Github, Docker Hub, Packagist et al use usernames for this, it works nicely, packages are namespaced in the form username/packagename. People advocating using a domain as the namespace get the same result, but the package namespace is tied to a domain, you have to have control of that domain, if you lose it, do you lose the namespace? What if I don't own any domain, people are saying in that instance I should use io.github.myusername, why not just myusername? that way my code isn't tied to a platform I may not use in 5 years time. I suppose that's it, a namespace is about my code, not about where the code is maintained or an external resource I may or may not keep access to, so don't namespace it in a way that ties it to such.