When rolling java code I’ve always stuck to the recommended convention of <reversed domain name>.<internal naming convention>. Usually this is pretty solid and prevents any issues with naming conflicts down the line. However, when you’re dealing with ‘deeply sub-domained’ organisations – for example cisb.justice.qld.gov.au – it gets a bit over the top. especially when you add the internal conventions and end up with something like au.gov.qld.justice.cisb.comm.sony.pfm42v1. etc.
Now I’m assuming that I’m not the only programmer working for the Queensland Government, ditto with the Department of Justice so simplifying to au.gov.qld. and au.gov.qld.justice. are out.
What are some of the conventions others have used in similar situations?
The approach taken was to utilize
au.gov.qld.justice.duet.as the base package. This adheres to the java standards and references a project name rather than internal department name to prevent any issues with department name shuffles in the future.