package path names

W

wizumwalt

Just curious about how most people name the package paths of a website
for a customer.

Do you normally make the packaging path under the name of the customer,
the name of the developing company, or ... does it depend on some other
conditions?

package com.customer.packages;

or

package com.development_co.packages;

or

?
 
R

Roedy Green

package com.customer.packages;

or

package com.development_co.packages;

who own the code? Is the code for that specific customer or it is
pretty generic?

In projects I have been involved in there was a strong distinction
between shared core code and customer specific application code. You
had to be much more careful about any mods to the core system, since
it could make all manner of quiescent projects stop working.

Just from the point of view of maintaining uniqueness, I think
packages should be named after the shop that wrote them. That way you
can be sure you won't get clashes. The name of the customer comes
somewhere in the package structure after the com.mindprod part.
 
W

William Z.

Roedy said:
who own the code? Is the code for that specific customer or it is
pretty generic?

The code is for that specific customer, but I was wondering if it's
common practice for the shop that wrote the code to put in their name as
sort of a sig, responsible, ...
In projects I have been involved in there was a strong distinction
between shared core code and customer specific application code. You
had to be much more careful about any mods to the core system, since
it could make all manner of quiescent projects stop working.

The customer wouldn't know how to maintain the code, and I was wondering
if there might also be some sort of benefit for the shop that wrote it
to put their name in, or if it should even be put in.
Just from the point of view of maintaining uniqueness, I think
packages should be named after the shop that wrote them. That way you
can be sure you won't get clashes. The name of the customer comes
somewhere in the package structure after the com.mindprod part.

Interesting.
 
R

Roedy Green

The code is for that specific customer, but I was wondering if it's
common practice for the shop that wrote the code to put in their name as
sort of a sig, responsible, ...

what is the package name for?

1. to ensure uniqueness.

2. to figure out where to go to find the latest class files or the
source.

Both of those suggest using the author's name rather than the
customer's as primary.
 
C

Chris Smith

wizumwalt said:
Just curious about how most people name the package paths of a website
for a customer.

Do you normally make the packaging path under the name of the customer,
the name of the developing company, or ... does it depend on some other
conditions?

I haven't thought much about it, but I suppose it would depend on who
will own the code. If this is code being written for hire so that the
customer would own the code, then you'd want to name packages after the
customer. If it's developed and then licensed to the customer but you
intend to retain ownership, then use your own company name in the
package.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
C

Chris Smith

William Z. said:
The customer wouldn't know how to maintain the code, and I was wondering
if there might also be some sort of benefit for the shop that wrote it
to put their name in, or if it should even be put in.

Comments work for making a note of who wrote the code, if that's your
goal. If you don't own the code, then don't use your company name as a
package. Your customer may not have the expertise to maintain the code,
but they could hire such expertise, or contract the job to a third
party... in any such case, your package name would soon become rather
out of place.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
T

tom fredriksen

Chris said:
I haven't thought much about it, but I suppose it would depend on who
will own the code. If this is code being written for hire so that the
customer would own the code, then you'd want to name packages after the
customer. If it's developed and then licensed to the customer but you
intend to retain ownership, then use your own company name in the
package.

That's my thoughts exactly. Ownership of the code is the key and it
should be stated in the contract who owns it and what rights each part
has for future use, maintenance, cost/pay etc
There can of course be other considerations, but that would have to be
considered individually and should be in the contract.

/tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top