aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: URLy Bird 1.3.1 GUI Design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: URLy Bird 1.3.1 GUI Design" Watch "NX: URLy Bird 1.3.1 GUI Design" New topic
Author

NX: URLy Bird 1.3.1 GUI Design

Bharat Ruparel
Ranch Hand

Joined: Jul 30, 2003
Posts: 493
Hello Max/Andrew,
I am following Max's GUI design closely and adapting it to URLy Bird's requirements. I find that I can more or less maintain one-to-one correspondance between his classes and mine. Therefore, a significant amount of coding is boiling down to cutting and pasting from his code to mine and making package/class/method/variable name changes. Removing the functionality that is not needed, adding stuff that URLy Bird calls for. Still, I find that I can use a lot of code already written by Max.
My question to you gentlemen is: shall I be failed by a grader who has read Max's book and sees a close correspondance to his code? Mind you, it is not mindless copying I am after, but smart "lifting" of code?
Is it OK to do that?
I don't see much point in reinventing the wheel here.
Regards.
Bharat


SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11481
    
  94

Hi Bharat
I don't think it is possible to copy Max's design. After all there are some significant differences between his DVD store and your assignment. One example: If you follow Max's design exactly, you will not have met the locking requirements of your assignment.
What you can do, though, is adapt Max's design to your assignment. To do that properly you will have to understand what Max is trying to achieve and see the parallel in your assignment, and then adapt it to fit.
And if you do that, then you are following good development practice. And it wouldnt matter if you were adapting stuff from Max's book, or from JavaRanch, or from Sun's site, or from JavaWorld, or ....
So I think you should be OK.
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Bharat Ruparel
Ranch Hand

Joined: Jul 30, 2003
Posts: 493
Hello Andrew,
I meant only the Swing part of it.
Same tabular representation. Selection of record. Book instead of Rent. Drop-downs instead of text boxes. Same stuff really. I didn't mean the locking piece of it. That is where I bugged you and Max quite a bit. Both Swing and RMI seem to be rather straight-forward to me.
In RMI we have to use the Factory Pattern to assure unique instances of client->DataAdapter->Data so that locking works correctly in Data. Otherwise, his design seems to be reusable.
I think I wasn't clear enough in my question. I will try to articulate better next time.
Thanks.
Bharat
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: NX: URLy Bird 1.3.1 GUI Design