What's the significance of TLD-first domain-like identifiers?

后端 未结 6 830
南旧
南旧 2021-01-21 01:06

\"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 hist

6条回答
  •  孤街浪徒
    2021-01-21 01:42

    In Java and other programming languages, the package identifier dictates how the directory hierarchy of the project is.

    So if you have two packages com.stackoverflow.server and com.stackoverflow.client, you'll end up with this directory layout:

    com/
       stackoverflow/
          client/
          server/
    

    which is good and logical, while the other way around would give you

    client/
       stackoverflow/
          com/
    server/
       stackoverflow/
          com/
    

    which is impratical.

提交回复
热议问题