This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Tell me the truth please. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Tell me the truth please." Watch "Tell me the truth please." New topic
Author

Tell me the truth please.

Jianping Wang
Ranch Hand

Joined: May 29, 2010
Posts: 60
Do you guys design all the class diagrams and sequence diagrams before coding? or just like me, get a general idea of class and then coding quickly?



SCJP 6 with 93%
Oracle Database SQL Expert with 98%
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Hehehe I like the title of your topic!

Well champion, honestly, I just started coding without creating any diagram first. I see that sometimes it is a "must" (due to the policy of the company you work for, for instance)... or you may want to come up with a class/sequence diagram before coding in order to guide your development. Although most of the time it is a good idea to have a class diagram (to document your design and help future maintenances), it isn't really necessary to create one for the assignment. I myself didn't create any diagram, but if you feel more comfortable creating a diagram before coding, feel free!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5139
    
  12

No diagrams for me, just a whole lot of thinking and discussing, resulting in the design I wanted to implement. And then: just do it


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Jianping Wang
Ranch Hand

Joined: May 29, 2010
Posts: 60
Recently I am running into a trouble for my company projects: I have 12 Dao, and every Dao has an interface, so 24 classes/interface. That's just persistence layer. In my present layer, Struts, I have to create 12 Forms and 12 domain classes. And what's more there is one class has 32 variables, all have to be validated and converted!!
So that's why I want a clear plan before coding. I read this article http://www.ibm.com/developerworks/java/library/j-genericdao.html to reduce number of classes. And still looking some other design solutions for my situation. And begin draw UML because of the trouble I just mentioned.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5139
    
  12

Jianping Wang wrote:Recently I am running into a trouble for my company projects: I have 12 Dao, and every Dao has an interface, so 24 classes/interface. That's just persistence layer. In my present layer, Struts, I have to create 12 Forms and 12 domain classes. And what's more there is one class has 32 variables, all have to be validated and converted!!

The SCJD assignment certainly will not be that huge: 1 dao will result in 2 files (1 class and 1 interface). And your model class (if you create one) will have 6-7 properties. If you just work with the String[] you won't have a model class.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tell me the truth please.
 
Similar Threads
Netbeans IDE for Part II preperation
SCEA Part 2 question
New to UML Design Docs
Difference between assignments of SCJD and SCEA !!!
how to represent this Flow in form of UML Class Diagram