Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are there too many classes?

 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have rectified Busniess domain model and now my class diagram already has 20 classes. I have yet to show any EJB's etc.
I think it is getting too heavy.

Any opinions?
 
Tomi Tuomainen
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't show EJB's or maybe just facades. Keep it simple. (my opinion)

Tomi
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I agree with Tomi. Just stick to the core business model, dont show any implementation specific classes (controllers, delegators,facades,daos etc). If you are still inclined to show the entities and session, show them as <<stereotypes>> in your class diagram. eg. Customer can have a <<entity>> stereotype attached to it.
The only thing I am very tempted to show are the adapters to the outside system. Am trying to figure out where they would fit in the class diagram, or I might just show them standing alone in some corner of the class diagram

parag
 
Billy Tsai
Ranch Hand
Posts: 1304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont think should have more than 30 classes
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
My class diagram contains only 10 classes .
I�m showing only the core business model classes. None EJB, only the entities and their relationships...
Am I wrong or missing something???

Bye
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eduardo Rodrigues:
Hi guys
My class diagram contains only 10 classes .
I�m showing only the core business model classes. None EJB, only the entities and their relationships...
Am I wrong or missing something???

Bye


Eduardo,
I dont think the number of the classes matter. If your model meets the requirements of the system, then you are fine. Keeping the model simple should be your main priority.

Parag
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was also inclined not to show any EJBs etc on class diagram as I think class diagram should purely represent domain and not the framework (J2ee in our case) we want to use. I was confused because lot of people here discussed putting enity/sessions/managers/controllers etc on the diagram.

Assignment only says about one class diagram in delverables. I would have liked to draw two diagrams really- one purely domain/business view and other design view.
Are there any guidelines for this?

Eduardo you need not worry about actual number of classes but make sure you have cpatured all the business model neatly.
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much guys!
I will keep my class diagram without 'technology classes'.. Only the business model...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic