Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package naming convention

The typical case is that a package is prepended with a url, to prevent conflicts.

E.g. com.example.helloworld

What do you do with a multi-part TLD, e.g. co.nz?

  1. co.nz.example.helloworld, or
  2. nz.co.example.helloworld

Thoughts?

like image 915
Igor Nadj Avatar asked Feb 14 '23 09:02

Igor Nadj


1 Answers

The convention is to write the domain name backwards, so it should be

nz.co.example.helloworld

This is explained in the Java tutorial.

like image 55
JB Nizet Avatar answered Feb 17 '23 02:02

JB Nizet