Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of Classes

 
Michael Kelleher
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.
 
Xabier Martija
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic