Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

package names

  • 03-04-2002 03:58PM
    #1
    Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭


    just curious. Are package names (c) ?

    For example if I have java program which relates to ANT can I use the package layout that Ant uses? Or would I run into problems if I tried to release it on Open source?

    .. just read that and it makes no sense here's an example.

    I have a program X which has a package layout of...

    org.xcorp.x.*

    I write a tool which relates to that, is it ok for me to put it into..

    org.xcorp.x or org.xcorp.x.mytool ?


Comments

  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    I've wondered that myself, I just came to the conclusion that it's bad programming practice. If I write something that's related to another product then I'll use:

    com.mycompany.theircompany....

    Using the same package name as them is bound to end in conflicts. It's easier to stay away.


  • Registered Users, Registered Users 2 Posts: 6,676 ✭✭✭Blitzkrieger


    Originally posted by Hobbes
    just curious. Are package names (c) ?


    AFAIK no. It is recommended you use the naming convention on the Sun website to avoid conflicts tho. i.e. : If you're doing a package for www.vistech.com call it something like com.vistech.mypackage . Using conventions like that it's unlikely there'll ever be a conflict.


  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    It's com.vistechsoftware actually :p

    Who are you? :)


  • Registered Users, Registered Users 2 Posts: 6,676 ✭✭✭Blitzkrieger


    no1 :) A friend of mine did his work experience at Vistech and it was the first company to come to mind


Advertisement
Advertisement