Results 1 to 8 of 8

Thread: com & org

  1. #1
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default com & org

    Why do people add com or org folders in their project?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by PhQ View Post
    Why do people add com or org folders in their project?
    Read this.

    kind regards,

    Jos

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by PhQ View Post
    Why do people add com or org folders in their project?
    To make your code more clear to you as well as to others who are reading your code. That's why something like naming convention are evolve in programming.
    Last edited by Eranga; 05-14-2010 at 11:43 AM. Reason: spelling correction

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Eranga View Post
    To make your code more clear to you as well as to others who are reading your code. That's why something like naming conversion are evolve in programming.
    Package names are like name spaces in e.g. C++. In a feeble attempt to make those name spaces unique globally the reverse of domain names is used.

    kind regards,

    Jos

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Eranga View Post
    True, but commonly referred as naming conversion I guess. ;)
    Nope, it's just a naming convention; it has nothing to do with conversion.

    kind regards,

    Jos

  7. #7
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    5

    Default

    Quote Originally Posted by PhQ View Post
    Why do people add com or org folders in their project?

    think if you have a package myutilities with a class ReadFile in it. Now if somebody else use the same package name and the same class name in an other project when you merge these two packages the name of the class is no more unique and you are no more sure which class will be used. as already mentioned a solution to this problem was to use the reverse of the top level domain name in the package name, because the top level name is worldwide unique.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by JosAH View Post
    Nope, it's just a naming convention; it has nothing to do with conversion.

    kind regards,

    Jos
    I'm really really sorry about that lol. It's my mistake. I've spell it in wrong way. It's about convention, not a conversion. I'll correct it in previous post. Really sorry.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •