• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webapps/package naming and path convention

 
Angus Comber
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just can't get started writing my servlet... because I can't think of what to call it

But seriously, I want to get the naming right up-front.

For the sake of an example, my url is inspiredgarden.com and I want to develop a product called Garden Designer which allows someone to design their garden layout on-screen.


Let me know if you think this sounds like a good package name and webapps naming convention.

In Tomcat_root/webapps I create my webapps name which is GardenDesigner.

My package path is:

com.inspiredgarden.gardendesigner

I am a bit concerned that I have GardenDesigner - with mixed case and also gardendesigner (all lowercase) in the package name. Should I use different names here or do something different? Any suggestions?

I might later on bring out a different design type package, eg industrialdesigner, so need the 3 level package name.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Angus Comber wrote:For the sake of an example, my url is inspiredgarden.com

Terminology first: that's your domain, not the URL. A URL is the full path to a resource.

and I want to develop a product called Garden Designer which allows someone to design their garden layout on-screen.

Sounds cool, and something I'd like to use.

I am a bit concerned that I have GardenDesigner - with mixed case and also gardendesigner (all lowercase) in the package name.

As package names aren't visible to anyone but the developer there s no problem whatsoever. I do not recommend using anything but lowercase for package names.

Should I use different names here or do something different?

Seems fine to me.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic