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

Passed With 375/400

 
jian zheng
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,I'm so happy that I passed SCJD.I'm so excited and do not know what to say.Thank you!All of you.I'v made a serious mistake in my design,and it's you who help me to understand what the Sun really want.I can't pass the test without your help.Thank you!
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats!
 
Hari Vignesh Padmanaban
Ranch Hand
Posts: 578
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats !! good score
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats Jian. What was your score in the Locking area? Derscribe how you designed your locking section.
Thanks
Mark
 
jian zheng
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Here is my score details:
Section Summary: Section Max Actual Points Points General Con: 100 77 Documentation: 70 68 OOD: 30 30 GUI: 40 40 Locking: 80 80 Data Store: 40 40 Network Server: 40 40 Total: 400 375
As a matter of fact I don't know English very well,so would you please tell me what's the meaning of "Section Max Actual Points Points General Con" mentioned upon?
I think my lock design is same with most of others.And here it is:
The locking mechanism is used in multi-client network mode in fact.When user do book a record through RMI the client invoke the book function which is synchronized.What the book function do is lock-update-unlock,and wait if record has already been locked by others.Lock and unlock function are also synchronized.What lock do is to put record into an vector and what unlock do is to remove record from vector.This vector stays in Data class as a member of Data,it's single because we got Data from DataManager in singleton pattern.
This is what I described my lock design in my choice document.
Hope it helpful!
Best Regards!
Jian
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jian.
What "Section Max Actual Points Points General Con" means is just really column headers for your score as in. And General Con is the first section being graded.
I broke your score down to show what I mean.

Mark
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Jian
In your description, you mention that the entire book() method is synchronized. I would expect that to cause deadlocks.
Did you do any special processing to shut down the application (e.g. lock the database)?
Regards, Andrew
 
jian zheng
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark ,and will you excese me that I post database lock up to now? I forgot it and Andrew reminded me.
Hi Andrew,nice meeting you again,you gave me a big help Do you remember?
Yes,you are right.I lock database when do book.I check whether the record has already been locked before I lock this record,lock it if it's free or wait() if it's been locked by others,and when others notifyAll(),check again,lock,book,unlock,notifyAll() if check pass and keep waiting if not.

I noticed that my score is not good at "General Con" part, is that mean there is problem in my design or anything else?I just want to know what I can do to make things better?Any ideas?
Thank you!
Best Regards
Jian
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jian,
The SCJD Faq shows the old breakdown of "general considerations" as:
General Considerations (Total 58)
  • Ease of use (23)
  • Coding Standards (23)
  • Clarity and Maintainability (12)


  • I would assume that the new assignments have a similar breakdown, with similar proportions.
    But it is very hard to guess at which of these you might have lost marks on
    Regards, Andrew
     
    jian zheng
    Greenhorn
    Posts: 21
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you Andrew.I think I have to find it out by myself.I have not enough design experience.And I believe I'll know suddenly someday,it happened a lot.Experience will be more when time going,haha
    Thanks again!
    Regards
    Jian
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic