Pregunta

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

¿Fue útil?

Solución

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

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top