• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Number of Classes

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have searched around, and found little guidance on the number of classes. One post mentioned having a total of 28 classes in the entire project.

Currently, I have 18 classes and 3 interfaces in my database package, not including the classes required by by specs, and another class to create instances of my database.

This seems excessive to me. I am sure I could justify just about anything, but am wondering what an "average" implementation might be like.

Does anyone have any thoughts on this?
 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One caveat to this is, all of my classes thus far, have fewer than 180 non-comment lines. Fairly small classes. I would say, fairly cohesive.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 20 classes. whith inner classe 35.
 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Xabier,

Does the 20 classes include everything? Front end UI, database, network client, locking, network server?
 
Michael Kelleher
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Xabier,

Does the 20 classes include everything? Front end UI, database, network client, locking, network server?
 
Xabier Martija
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,

8 for the db package B interface, Data class, 3 exceptions, VO Contractor, file manager class, reservation manager class.

10 for the GUI's (inner classes not included):1Application Runner,2 client configuration windows,a common client Window, a table model,1 server configuration window,1 server window + some panels

2 for network. the remote interface + interface implementing remote object

don't think that the are large: all compiled classe + 1stub= 60KB.(classes directory)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!