2

I've seen things like com.google.process.gapps in a lot of places, like Android and Flatpak, etc. What does it mean? It looks like a domain reversed.

fixer1234
  • 27,064
  • 61
  • 75
  • 116
  • Good question. MacOS does the same with preference files etc stored in `com.apple.` format so this naming convention seems to extend beyond Android. I added that as an extra tag if that is OK. – lx07 Feb 01 '19 at 19:58
  • 2
    Take a look at this: https://en.wikipedia.org/wiki/Reverse_domain_name_notation – Doug Deden Feb 01 '19 at 20:02
  • @Doug Deden - that Wiki article doesn't seem to address reason though. – lx07 Feb 01 '19 at 20:12
  • 2
    It mentions it, but it is admittedly rather vague. It is "...a simple way of reducing name-space collisions...". Also, from https://web.archive.org/web/20060508013146/http://www.gnu.org/software/java/why-gnu-packages.txt, "Using the reverse domain name is an arbitrary convention, that uses a specific property of an organization to generate a unique name." – Doug Deden Feb 01 '19 at 20:18
  • 2
    @lx07 The reason for using URL is to reduce namespace collision. The reason for reversing is for sorting (most significant part of the URL comes first this way). – Acccumulation Feb 01 '19 at 22:42
  • Could you put that as an answer so I can accept it? –  Feb 01 '19 at 23:46

0 Answers0