From: Vincent M. <vm...@oc...> - 2001-08-13 06:59:23
|
----- Original Message ----- From: "Steve Freeman" <st...@m3...> To: <moc...@li...> Sent: Sunday, August 12, 2001 11:17 PM Subject: [Mockobjects-java-dev] ant targets? > At work, I've adopted a convention of making internal targets CamelCase and external targets lower case, it seems to read quite well. I would have preferred something like "_my_internal_target" for internal targets and "my_external_target" for external ones, or prefix internal targets with a word like "internal" (for example "my_target" would give "internal_my_target"). I think the latter is the ones that would read the best. I've just reread the build.xml and noticed that I have used another convention, which is, for any xxx target, to prepare all environment setup (directory creation, copies of files, ...) in a "prepare-xxx" target. Also, I tend to prefer to write "my.target" rather than "my-target" or "my_target". We could homogeneize on this pattern if you like it. So with the proposition above, that would give "_my..target" or "internal.my.target" However if you strongly prefer CamelCase, that's fine. Coding conventions are always hard to decide .... :) > > What do you think? > > steve -Vincent |