As I am working on my assignment I just want to express concern on the fact that I have seen a lot of people having more components in their component diagram then classes in their class diagram and what worries me more they passed with flying colours.
As far as I am concerned although debatable(even in Martin Fowler's book i the debate is mentioned) a component should be more then one class/jsp a grouping that has a distinct purpose like a car engine is a component of a car .. so when I see people mentioning component diagrams of 37 components and class diagrams containing less(like 25 classes) I start wondering ... a lot.
The component diagram should be as simple as possible(again from my point of view) for a non-technical person to understand how the system is built. Like when I show somebody a car I don't discuss fuel injection and how many chips are in the engine but the wheels , engine and steering wheel to simplify as much as possible the view.
Also with the implementation of EJB 3.0 and JPA we do not need to show Entity classes or EJB session beans as componennts (just annotated classes).
Please comment on this.
PS : I have seen some architectural docs at work and they followed the same spirit.
Better, faster, lighter Java ... you mean Ruby right ?
SCEA5,SCBCD1.3,SCWCD5,SCJP1.4 - memories from my youth.
According to Chapter 9 in Humprey Sheil's book, the component diagram should at a higher level and should illustrate the moving parts of the solution. If the component diagram depicts all classes and interactions, then it will be like a sequence diagram drawn vertically. Can anyone who passed out the exam can shed some light on this?
SCJP1.4, SCBCD 1.3, SCWCD 1.4, SCEA 5, JLPT-N3
Classes are what designers see components are what users see.
So the answer is yes and no I would say. The yes part is all the classes will all be taken care of by fewer # of components but there may be some components that you will think of while doing the comp diagram - for example there may a component that is common to a number of classes etc. So IMO there is no correlation between the # of classes and # of components