您如何处理程序包/命名空间中的国家/地区代码 TLD 名称?
惯例是您使用您公司的域。这很简单,但如果是 www.mycompany.co.uk 之类的东西怎么办?
如果是 www.mycompany.com,这就不成问题了。这是相当简单的 com.mycompany.Class
我们要如何处理第一个?
uk.co.mycompany.Class 还是 co.uk.mycompany.Class?或者完全是别的什么?
The convention is that you use your company's domain. That is quite simple but what if it is something like www.mycompany.co.uk.
Now this wouldn't be a problem if it were www.mycompany.com. That is fairly simple com.mycompany.Class
What are we meant to do with the first?
uk.co.mycompany.Class OR co.uk.mycompany.Class? Or something else altogether?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
uk.co.mycompany.Class
这是您的 URL 的简单反转。请注意,在第一个示例中,您实际拥有的域是 mycompany.com,而不仅仅是 www.mycompany.com
uk.co.mycompany.Class
It is a simple reverse of your URL. Note that in the first example the domain you actually own is mycompany.com, not just www.mycompany.com
如果这就是您应该如何编写命名空间的方式,我会说
uk.co.mycompany.Class
最适合您的第一个示例。在我看来,这是相当主观的,你应该定义一个标准,并坚持下去。
If that is how your supposed to write your namespaces, I'd say that
uk.co.mycompany.Class
fits best with your first example.It also seems to me that this is pretty subjective, and you should define a standard, and stick with it.