• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: (URLyBird) Reasonable number of classes...

 
james render
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do people consider to be a reasonable number of classes to have in the 'suncertify.db' package?
Max's example project has 5.
I'm approaching double that but could get to triple with refactoring. I think that that could be excessive but I'd rather have a separate class than large classes with supporting inner classes.
I consider the newer projects to be more involved on the I/O side justifying the extra classes. Plus I've implmented create, recover and delete functionality.
What are others opinions?
thanks Guys,
J.
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my classes are in data and not db, only the interface is there, Sun's messup, but same difference
my data package has sub-packages common, util, and server, the total number of classes is 16, add to that the DBMain interface in db and its 17, none of these have inner classes, I didn't see a need for them, at this point I have 32 source files and 47 classes, this could change but I doubt it, and if it does then not by much, this is my 3rd and final iteration, I hope.
 
Perry Board
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 19 classes/interfaces, not counting inner classes. I've kept them all in suncertify.db, not really thinking about separating into subpackages. Are other people using different packages?
I can't imagine doing this with only 5.
 
Bob Reeves
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the URLyBird assignment, I have seven classes in the suncertify.db directory. Three are Exception classes. I placed my locks in util.concurrent, and have two files there. Finally, there are server (Facade) and rmi directories: five total in them.
My grand total: 15.
I'm worried that I might have more that 15 test files to accompany these
Tx
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic