TLD优先的类域名标识符的意义何在? [英] What's the significance of TLD-first domain-like identifiers?

查看:84
本文介绍了TLD优先的类域名标识符的意义何在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"TLD优先于域的标识符"是一口,但这就是我所能想到的.

"TLD-first domain-like identifiers" is a mouthful but that's all I can come up with.

这些年来,我已经在不同的地方看到了这些术语,并想知道该约定背后的历史/原因是什么,因为您可能会以为有一种真正的提及域的方式可以原谅您.

I've seen these used in various places over the years and wondered what the history/reason behind this convention is, since you might be forgiven in thinking that there is one true way to mention a domain.

我不使用Java,但是我回想起命名空间通常是这样的:

I don't use Java but I recall from poking around that namespaces are often done like this:

uk.co.tophats.stitchkit

uk.co.tophats.stitchkit

在Mac OS X上用于启动代理"的规范文件:

A specification file for a "Launch Agent" on Mac OS X:

ws.agile.1PasswordAgent.plist

ws.agile.1PasswordAgent.plist

Mac OS X上的首选项文件:

A preferences file on Mac OS X:

com.apple.iTunesHelper.plist

com.apple.iTunesHelper.plist

为什么顶级域名优先?仅仅是像英国和美国日期格式这样的分层学步法吗?

Why is the TLD first? Is it just hierarchical pedantry like UK vs. US date formats?

推荐答案

对于Java来说,程序包直接对应于目录层次结构,并且将目录层次结构植根于最一般的意义更为合理,而不是根植于目录层次结构而不是最具体的域标识符.另外,在读取目录层次结构时,最常见的是从上至下读取.因此,我认为翻转域组件顺序的约定在那里很有意义.

For the case of Java, the packages correspond directly to directory hierarchy, and it makes far more sense for the directory hierarchy to be rooted at the most general, rather than the most specific, domain identifier. Also, when reading off directory hierarchy, it is most common to read it from the top down. So I'd say the convention of flipping the order of domain components makes sense there.

这篇关于TLD优先的类域名标识符的意义何在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆