3

Possible Duplicate:
What package naming convention do you use for personal/hobby projects in Java?

I am learning Java and have found a problem. I would need a domain name for my packages, but I don't have one. I wouldn't like to use my email address. So should I make an account on SourceForge or GitHub and use that? If so, which one is best? Or is there another, better method? Thanks

Community
  • 1
  • 1
Macro206
  • 2,143
  • 3
  • 19
  • 25
  • 1
    Personally, I use `lastname.projectname` – Jeffrey Aug 18 '12 at 18:01
  • I have read that question, but I was thinking of perhaps making a Bukkit plugin for Minecraft, something that others will use. I am now thinking of using GitHub. Is that a good method? – Macro206 Aug 18 '12 at 18:05
  • Why not just buy a domain? Every self respecting software developer should have one. They aren't exactly expensive. – Jens Schauder Aug 18 '12 at 18:28

2 Answers2

5

A common naming scheme used is the following (| means or):

country| org|com.name.applicationName.subpackages

Name is either a company or your name. And after the applicationName you start all your subpackages (that is what I mean in the end) e.g. util, ui,db etc

For example if you are John Dave from England use en.jdave.smartapp.ui.core.forms. Or Marcus German From Germany: de.mgerman.smartapp.ui.core.forms etc

Cratylus
  • 52,998
  • 69
  • 209
  • 339
  • 2
    If you use that idiom, it implies that you own that domain. The OP does not own a domain. – Jeffrey Aug 18 '12 at 18:04
  • 1
    Could I use a GitHub domain as my domain? – Macro206 Aug 18 '12 at 18:12
  • 2
    The idea is that this is a common structure to create a package name.Use for name your company name or your personal name.For example if you are John Dave from England: `en.jdave.smartapp.ui.core.forms`. From Germany: `de.jdave.smartapp.ui.core.forms`etc Also it doesn't have to be something universally unique unless you expect to be used by major companies across the world – Cratylus Aug 18 '12 at 18:18
-2

Generally Profession uses package name according to there reverse Site name For instance com.site_name.applicaton_name

PradeepBhati
  • 63
  • 1
  • 3
  • 11
  • "I am learning Java and have found a problem. I would need a domain name for my packages, but I don't have one" – cubuspl42 Sep 03 '18 at 14:33