Menu

#1 Organize your Code with packages

open
None
3
2002-10-28
2002-07-15
No

You should move your source files into packages.

e.g.:

com.jbidwatch
com.jbidwatch.auction
com.jbidwatch.gui
com.jbidwatch.util

So it would be much easier to understand the code.

I tried it myself, but I had not enough time to get into
your code to seperate the dependencies.

Discussion

  • Morgan Schweers

    Morgan Schweers - 2002-07-16
    • assigned_to: nobody --> cyberfox
     
  • Morgan Schweers

    Morgan Schweers - 2002-07-16

    Logged In: YES
    user_id=19745

    Greetings,

    At this point in time, the dependencies are too
    intertwingled. I can make a com.jbidwatch package, under
    which everything sits, but you can't break up the code right
    now completely. A *lot* of people want to use the code as
    just an API, and I even have code that uses it as such, but
    it still requires the UI portions to be linked with it.
    There's a dependency between AuctionsManager and some of the
    UI code, which makes everything interdependant. I want to
    break all those dependencies, but it's not a priority yet.
    It's one of the 'major rearchitectures' for post-1.0.

    -- Cyberfox

     
  • Morgan Schweers

    Morgan Schweers - 2002-07-16
    • priority: 5 --> 3
     
  • Morgan Schweers

    Morgan Schweers - 2002-09-11

    Logged In: YES
    user_id=19745

    Greetings,
    Actually, one of the problems is that packages require
    subdirectories, and subdirectories require moving my files
    around. Moving files around is very much NOT supported by
    cvs, so my source history would go kaput.

    Ick... I need to come up with a way to solve that, somehow.

    -- Morgan

     
  • Morgan Schweers

    Morgan Schweers - 2002-10-08
    • labels: --> 465969
     
  • Morgan Schweers

    Morgan Schweers - 2002-10-28
    • labels: 465969 -->
    • assigned_to: cyberfox --> nobody
     
  • Morgan Schweers

    Morgan Schweers - 2002-10-28
    • assigned_to: nobody --> cyberfox
     
  • Nicolas Schmid

    Nicolas Schmid - 2005-01-27

    Logged In: YES
    user_id=893530

    hi there,

    you postponed this bug for over 2 years now! isn't there any
    for you acceptable way to do the packaging? i would do it
    for you, but you have to come up with a solution for the cvs
    problem. i would suggegst accepting to loose revision
    history and completely remove the old structure (possibly
    tagging it first).

    greetings

    nicolas schmid

     
  • wa7son

    wa7son - 2005-04-03

    Logged In: YES
    user_id=1251991

    One way to move the file to a new location in CVS would be to:
    1. Copy the file locally
    2. Remove the old file from CVS
    3. Add the new file to CVS

    This way you would have version history on the project as a
    whole, but not on the new file it self of cause (you would
    have to know or add as a comment where the old file is located).

    But I would argue that this way of doing it is better then
    not having it in packages at all! - Hopefully there is no
    greater need to go back and build older versions of the
    software?

    /watson

     
  • Nobody/Anonymous

    Logged In: NO

    for for your info guys: apparently JBW is now migrating over
    to SubVersion, so the CVS limitations should no longer be a
    factor anymore-thus, if you are still willing to get
    involved, I'm sure your support would be appreciated!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.