• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Design phase - class diagram

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

When you start a new project in J2EE and once you identify how many classes, servlets, JSPs are required do you guys prepare any class diagram to show the link beween different components ? If yes, could you please let me know what tools/software you use for preparing that flow.

Thanks
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the OO, UML, Patterns and Refactoring forum, where such conversations are typically held around these parts...
 
author
Posts: 608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds to me like you should consider a UML deployment diagram (http://www.agilemodeling.com/artifacts/deploymentDiagram.htm) or a network diagram (http://www.agilemodeling.com/artifacts/networkDiagram.htm) to show the relationships between the various boxes (browswer, app server, db, ...).

You might also want to consider a component diagram (http://www.agilemodeling.com/artifacts/componentDiagram.htm) to explore the various software components and the relationships between them.

- Scott
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dilip kumar:
When you start a new project in J2EE and once you identify how many classes, servlets, JSPs are required do you guys prepare any class diagram to show the link beween different components?



This is only *identified* while coding - everything before that is just a rough plan of action. The latter is depicted in diagrams to the amount that we feel it helps the team to communicate.

If yes, could you please let me know what tools/software you use for preparing that flow.



Depending on the situation (mostly number of people participating in the discussion), either pen and paper or the white board.
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say that the true value of a class diagram is not the diagram as much as it is the excercise in itself. Once you've come up with your classes, there's little value in making a diagram.
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys.

Developers may not need the class diagram while developing the project. They might have very good idea about the objects they are writing. But if they have to explain the objects they used and represent the logic/flow it would be easier if some sort of class diagram exists.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dilip kumar:
if they have to explain the objects they used and represent the logic/flow it would be easier if some sort of class diagram exists.



Well, I actually find it easier to draw the diagram *while* explaining.
 
reply
    Bookmark Topic Watch Topic
  • New Topic